List of Contributions

Mr. Ryan Cook

Contact Details

My Content

1 to 20 of 50+ total
Posted By Ryan Cook 09-23-2025 11:24
Found In Egroup: MapInfo Pro
\ view thread
I'm looking at IsGridCellNull() and GetGridCellValue() in MapBasic. Both seem incredibly unstable, and I can't quite see how to translate Long/Lat coords to pixels. What's the point of these functions if they require a unit MapInfo cannot refer to? Not sure I get it. ------------------------------ ...
Posted By Ryan Cook 09-23-2025 06:13
Found In Egroup: MapInfo Pro
\ view thread
Thanks John. Sadly that's a module only available with MapInfo Advanced. Which is a shame when QGIS can perform the task for free. Ideally, I'd like to be able to code the function into a program to automate a process, but it seems all of this functionality is locked behind an even more expensive ...
Posted By Ryan Cook 09-18-2025 06:21
Found In Egroup: MapInfo Pro
\ view thread
Hello I have an ESRI grid image (.adf) of population data. I can open it in MapInfo and I can obviously use it visually, but how do I use the actual attribute data? I haven't really worked with raster/grid data very much before. Ideal world I'd like to convert the thing to vector, so each (square) ...
Posted By Ryan Cook 05-21-2025 10:02
Found In Egroup: MapInfo Pro
\ view thread
Incredible. It's gone from updating one row every 10-20 seconds to updating ~100 rows per second. I didn't realise you could stick any function into the select expression list - that might be a game-changer! Also disappointed in myself for not spotting the far more streamlined and obvious sort method ...
Posted By Ryan Cook 05-21-2025 09:16
Found In Egroup: MapInfo Pro
\ view thread
Thanks Peter, I will give your suggestions a whirl! ------------------------------ Ryan Cook ORH LTD ------------------------------
Posted By Ryan Cook 05-21-2025 06:37
Found In Egroup: MapInfo Pro
\ view thread
Hi, I have a table of small regions (t1) and a table of large regions (t2). These tables are not coterminous and the boundaries overlap. I'd like to populate a "Most_In" field in t1 with the name of the t2 region that overlaps it the most. Example: region 1 from t1 overlaps regions a, b and c from ...
Posted By Ryan Cook 05-21-2025 06:22
Found In Egroup: MapInfo Pro
\ view thread
Any joy Peter? Yeah, the most frustrating thing is it makes everything so sluggish when the menu pops up as soon as you write a bracket or something; even worse is as you continue to type it just selects something from it's menu in place of what you wrote. Painful. I just want to type code into the ...
Posted By Ryan Cook 05-06-2025 05:29
Found In Egroup: MapInfo Pro
\ view thread
Anybody?! ------------------------------ Ryan Cook ORH LTD ------------------------------
Posted By Ryan Cook 04-30-2025 10:28
Found In Egroup: MapInfo Pro
\ view thread
Hiya, Is there any way to turn off IntelliSense in SQL window? It makes the window so clunky to use, it's constantly triggering when I don't want it to and auto-filling text I had no intention to write, it's always inserting extra brackets and quotes, and it just makes it a feature I loathe using (if ...
Posted By Ryan Cook 01-23-2025 05:38
Found In Egroup: MapInfo Pro
\ view thread
Include "MAPBASIC.DEF" Dim Linktab, DirPath, SavePath, ImportPath, Cmd_String as String LinkTab = Input("Link Table", "_Table:", "table", "TableInfo(ScriptContext(2)") If Not CommandInfo(CMD_INFO_DLG_OK) then Note "Exiting!" End Program Else End if Print "Add fields for processing..." Alter Table ...
Posted By Ryan Cook 01-23-2025 05:37
Found In Egroup: MapInfo Pro
\ view thread
Update: Free beers confirmed. It does exactly what I want with minimal fuss! Basically, I've been trying to split all dual carriageways pairs into separate batches. With HERE data, this is easy as they have a value called Dir_Of_Travel with either side of dual carriageways always carrying different ...
Posted By Ryan Cook 01-22-2025 09:28
Found In Egroup: MapInfo Pro
\ view thread
Yeah, I get that. But seeing as both open and register statements contain a read only parameter, it would be nice if that actually did something. I'm not sure what the point is of having a table referring to a CSV AND a copy of it for editing. If I want to register/open it as editable, MapInfo should ...
Posted By Ryan Cook 01-22-2025 07:18
Found In Egroup: MapInfo Pro
\ view thread
Oh my god, if this is true you may consider me a source of free beer anytime you are in the UK, Peter! This could save me a crazy amount of work! Can I run that function from inside a MapBasic program? ------------------------------ Ryan Cook ORH LTD ------------------------------
Posted By Ryan Cook 01-21-2025 12:27
Found In Egroup: MapInfo Pro
\ view thread
Hi, Can anyone explain to me how MapInfo is able to instantaneously show the line direction of a layer with a click of the button "Show Line Direction"? Seems to work for both lines and polylines. Yet I can't work out where this value is stored in the object geography. I basically want to populate ...
Posted By Ryan Cook 01-21-2025 11:58
Found In Egroup: MapInfo Pro
\ view thread
Hi Steve. As stated I am using MapBasic, I'm not performing the task manually via dialogs. ------------------------------ Ryan Cook ORH LTD ------------------------------
Posted By Ryan Cook 01-21-2025 05:07
Found In Egroup: MapInfo Pro
\ view thread
I really don't understand why every time I use code to open a CSV, the table opens as read only. Register Table ImportPath Type ASCII Delimiter 44 Charset "WindowsLatin1" into SavePath Open Table SavePath Why if BOTH register and open commands in MAPBASIC provide Read Only clauses, do I have ...
Posted By Ryan Cook 10-23-2024 09:24
Found In Egroup: MapInfo Pro
\ view thread
Yes, thanks James. For the record, I ended up doing something similar but with a thematic: Dim Reg, sStatement as String Dim nWIn, cnt, nFirstMID, nSecondMID, nThirdMID, nFourthMID As Integer cnt=0 For nWin = 1 To NumWindows() If WindowInfo(WindowID(nWin), WIN_INFO_TYPE) = WIN_MAPPER Then ...
Posted By Ryan Cook 10-18-2024 05:33
Found In Egroup: MapInfo Pro
\ view thread
Hi, I am trying to write a MapBasic program that utilizes the layer filter functionality based on user input. For simplification, my code is roughly trying to work as follows: Dim Reg as String Reg = Input("Region Picker", "_Zoom to:", "Region name", "String") Select obj from REGIONS where Name ...
Posted By Ryan Cook 08-13-2024 06:23
Found In Egroup: MapInfo Pro
\ view thread
Thanks Peter. You code made me scrutinize mine more closely and I noticed that nLayerID was actually being dim'ed in a different sub. Sadly rather than return a "variable not defined" error, the shade command was returning the invalid view layer error (because I was asking MapInfo to change the shade ...
Posted By Ryan Cook 08-12-2024 12:21
Found In Egroup: MapInfo Pro
\ view thread
Struggling to understand what I'm doing wrong here. I have a program which you can launch to make company standard adjustments to a thematic layer in a layout. The layout, created with another program, contains one map frame with the name "Main Map". The map contains a layer of lines with a theme based ...