List of Contributions

Uffe Kousgaard

Contact Details

My Content

1 to 20 of 50+ total
Posted By Uffe Kousgaard 05-15-2026 01:08
Found In Egroup: MapInfo Pro
\ view thread
I would most likely export the tables to MIF/MID and then use something like notepad++ to search and replace, before importing again. If you want to do it with mapbasic, you can look at mblibrary, which has this function in module stringlib.mb: Function STRINGReplace(ByVal sToBeSearched As String, ...
Posted By Uffe Kousgaard 04-28-2026 03:16
Found In Egroup: MapInfo Pro
\ view thread
Here is another small example, which I wrote a couple of days ago. I had an access database with many very wide char fields in it. After saving it as a normal TAB file, I wanted to trim the char fields, so they were not all 254 characters wide. Main feature is dynamically building an ALTER TABLE statement ...
Posted By Uffe Kousgaard 04-21-2026 02:55
Found In Egroup: MapInfo Pro
\ view thread
A different approach: Export the table to MIF, edit the header of the MIF-file to 300 with a text editor and then reimport. ------------------------------ Uffe Kousgaard CEO Routeware v/Uffe Kousgaard Roskilde ------------------------------
Posted By Uffe Kousgaard 02-23-2026 03:05
Found In Egroup: MapInfo Pro
\ view thread
Generally no issues, which doesn't help you much ! Are your tables unusual in some way? Another method is exporting to MIF and then import again. ------------------------------ Uffe Kousgaard CEO Routeware v/Uffe Kousgaard Roskilde ------------------------------
Posted By Uffe Kousgaard 11-08-2025 03:02
Found In Egroup: MapInfo Pro
\ view thread
Coordinate of your TAB files are MGA Zone 55, but a bounded version. This means coordinates are only possible within those bounds and objects can not be moved outside. Change to an un-bounded version or use LatLong for your text/box tables. Normally the advantage of bounded tables are higher accuracy, ...
Posted By Uffe Kousgaard 08-26-2025 01:27
Found In Egroup: MapInfo Pro
\ view thread
Is there going to be such a thing? ------------------------------ Uffe Kousgaard CEO Routeware v/Uffe Kousgaard Roskilde ------------------------------
Posted By Uffe Kousgaard 07-02-2024 06:24
Found In Egroup: MapInfo Pro
\ view thread
But you don't have to make copies. MapInfo will do the transformation on the fly. ------------------------------ Uffe Kousgaard CEO ROUTEWARE Roskilde ------------------------------
Posted By Uffe Kousgaard 07-02-2024 05:50
Found In Egroup: MapInfo Pro
\ view thread
My experience is you can't snap between tables, if they have different coordinate systems. Adding bounds isn't enough. They need to be exactly the same. ------------------------------ Uffe Kousgaard CEO ROUTEWARE Roskilde ------------------------------
Posted By Uffe Kousgaard 07-02-2024 01:56
Found In Egroup: MapInfo Pro
\ view thread
oRegion is in BNG and MapInfo keeps track of this. At the point where you do the spatial join, MapInfo will notice oRegion and tPoints are different and will perform the needed transformation, before joining. If you call a function like centroidx(oRegion), the result will come back in lat/long because ...
Posted By Uffe Kousgaard 05-08-2024 01:33
Found In Egroup: MapInfo Pro
\ view thread
Very nice, but you are missing an l in Wolverhampton ! ------------------------------ Uffe Kousgaard CEO ROUTEWARE Roskilde ------------------------------
Posted By Uffe Kousgaard 05-03-2024 05:14
Found In Egroup: MapInfo Pro
\ view thread
Yes, it also stops working correctly for me after record 13548. All blanks. ------------------------------ Uffe Kousgaard CEO ROUTEWARE Roskilde ------------------------------
Posted By Uffe Kousgaard 05-03-2024 00:55
Found In Egroup: MapInfo Pro
\ view thread
It works here, if I change the float to char, MapInfo decides for a char(19) and it keeps that field definition after opening the table. If it still fails for you, you can just close the file, edit the TAB file header and then open the TAB again. ------------------------------ Uffe Kousgaard CEO ...
Posted By Uffe Kousgaard 05-02-2024 01:32
Found In Egroup: MapInfo Pro
\ view thread
In MapInfo 2023 it automatically gets recognized as char and also gets opened that way. Maybe you are using an older version? ------------------------------ Uffe Kousgaard CEO ROUTEWARE Roskilde ------------------------------
Posted By Uffe Kousgaard 04-20-2024 02:30
Found In Egroup: MapInfo Pro
\ view thread
Full OSM data contains height information for a few buildings, but not so many. # of levels is more common and can be a good proxy for height. I think osmbuilding use it. Zoom very close and you can count the windows. Stay away from SHP files (too processed), only use the full OSM download from geofabrik. ...
Posted By Uffe Kousgaard 03-20-2024 02:26
Found In Egroup: MapInfo Pro Developers User Group
\ view thread
As a small mapbasic application, it could look like this: dim s as string dim i as integer dim N as integer s = "alter table xxx (drop " N = tableinfo(xxx,TAB_INFO_NCOLS) for i = 163 to N s = s+columninfo(xxx,"COL"+str$(i),COL_INFO_NAME) if i=N then s = s+")" else s = s+"," end if next ...
Posted By Uffe Kousgaard 09-14-2023 03:27
Found In Egroup: MapInfo Pro
\ view thread
A couple of questions: 1) Does MIF now support M/Z values? 2) If the old TAB format has supported it for many years, how do you create such a table from scratch, pre-2023? I remember to have seen it mentioned in the MFAL library, but never looked into it. It has a type called CSYS_MZ_INFO. EFAL seems ...
Posted By Uffe Kousgaard 07-27-2023 13:58
Found In Egroup: MapInfo Pro
\ view thread
Yes, most likely. It can be either GDAL or EFAL which doesn't like it. A field called "Table", "Date" and similar could also give problems depending upon the software accessing the table. ------------------------------ Uffe Kousgaard ROUTEWARE Roskilde ------------------------------
Posted By Uffe Kousgaard 07-21-2023 06:12
Found In Egroup: MapInfo Pro
\ view thread
I all fairness: Someone else than me came up with this solution. Many years ago. ------------------------------ Uffe Kousgaard ROUTEWARE Roskilde ------------------------------
Posted By Uffe Kousgaard 07-21-2023 02:52
Found In Egroup: MapInfo Pro
\ view thread
You need a dummy field for joining, it can be just 0's in both tables. select ranges.MinValue, ranges.MaxValue, Count(*) from ranges, InputValues where ranges.dummy=InputValues.dummy and ranges.MinValue =InputValues.Value group by ranges.MinValue order by ranges.MinValue ---------- ...
Posted By Uffe Kousgaard 04-19-2023 04:49
Found In Egroup: MapInfo Pro
\ view thread
Then it may be Spatial tab > Regions > Voronoi you are after. The final output will follow the line between red/green and red/blue closely, but the outer perimeter is going to a rectangle. You could clip the 3 voronoi polygons by a single alpha shape, based upon all points. ------------------------------ ...