New answers tagged

3

You can circumvent the error of the deep deep folders / file path longer than 255 characters in two ways in Python. One way is to use the win32api and get a short representation of the long filepath. From what I understand this is also what WinExplorer does internally. from win32api import GetShortPathName long_path = ...


0

Thanks for the help @Peter! I ended up using the following code which did what I needed: Sub Process Dim aGrouped as Alias Print "Object Combiner Loaded!" Select * from selectedTable into Temp_GroupedTable Group By selectedColumn Print "Grouping Successful" '*** Groups by user selected column aSelection = selectedTable & "." & selectedColumn ...


2

Try this: Dim aSelection, aGrouped as Alias Dim sGrouped As String aSelection = selectedTable & "." & selectedColumn Select * from selectedTable into Temp_GroupedTable Group By aSelection aGrouped = "Temp_GroupedTable." & selectedColumn Fetch First from Temp_GroupedTable Do Until EOT(Temp_GroupedTable) aGrouped = sGrouped Select ...


1

I had the same problem in the new 64-bit environment. It is just a matter of changing the color style in the raster tab from pseudo to RGB. Trust that they have a similar setting in the 32-bit environment.


1

I don't know how much or what type of information you have in your .CSV, but I looked at files of mine which for instance hold over 500,000 streets (polylines) where the .DAT file is 90MB and another file with 2,500 cities (polygons) where the .DAT file is only 400KB. If you'd like to send me the .CSV I can covert it to .TAB for you through MI and see if I ...


1

(I think this could go as another question: "How to remove black border around legend?") Just select the legend in the layout and then click the region style: there you can change borders and also able/disable the foreground.


0

With MapInfo Pro you also get free access to the tool MapCAD. MapCAD has a feature called "Continouos Dimension Line". This will let you draw a polyline from a start point via any number of points you want to measure to and to a end point. MapCAD will now draw a line from the start point to the end point and create perpendicular lines to each of the via ...


1

I don't think MapInfo allows you to customize legends in the way you need. Still, you can "tease" the layout by deleting all text in the legend and then using text box on the side (same with legend title), as shown in the picture below:


3

We have not ported all the MapBasic applications from 32 bit to 64 bit, yet. That's why you can't find all the applications that you know from the 32 bit version when you are running the 64 bit version. You can, however, find them in the Tools folder of the 32 bit version, but only if you have the 32 bit installed. If you don't have the 32 bit version ...


0

I can't find a "good" way to put the range labels in more than one line. If I had to do it, I would delete the range labels, then choose the swatch size "Large", and then add a text box on top (the large swatch size allows you to have room enough for two lines of text). By the way, I often do have your same problem not with range labels but with the title ...


1

As @T_Bacon said, you won't have any problem moving from v9 to v15 32-bit version. I moved from v9 straight to v12.5 32-bit. For basic functionality, it is exactly the same, but with some great added features. Also, depending on your needs, you may want the v15 64-bit version. Either way though, when you purchase v15 you can install one, or both of the ...


0

The Windows command was useful to help to port to Linux Bash. You will find this Bash version below: for file in *.tab; do if [[ ! -f "merged.sqlite" ]]; then ogr2ogr -f "SQLite" "merged.sqlite" $file -nln merged -nlt PROMOTE_TO_MULTI -dsco SPATIALITE=YES; else ogr2ogr -f "SQLite" -update -append "merged.sqlite" $file -nln merged ...


3

I'm not sure whether older versions are available, however I can allay your fears that the newer version will be unrecognisable. The latest 64-bit version of MapInfo does look significantly different with the ribbon menu bar like in the newer versions of MS Office, however you will find that the 32-bit version has not changed very much and should be very ...


1

RouteFinder is a tool for MapInfo Pro written using MapBasic and Delphi. These tools can't be automated using MapBasic and they also don't write out there "MapBasic statements" to the MapBasic window. The only cance of automating this is if RouteFinder does have a batch feature for the specific process that you are running. Would one option be to merge ...


3

You can use ogr2ogr from GDAL Utilities to batch convert several shape files to mid/mif. If you use OSGeo4W installer you can easy install GDAL Utilities. A simple script for you to convert all shape to mif/mid in the current directory: @echo off for %%f in (*.shp) do ( set name=%%~nf ogr2ogr -f "MapInfo File" %name% -dsco FORMAT=MIF %%f )


1

For a single layer, the recipe to export with Python to MIF/MID is the following (deduced from "Dataset Creation Options" of GDAL MapInfo documentation) : vLayer = iface.activeLayer() QgsVectorFileWriter.writeAsVectorFormat(vLayer, '/tmp/' + vLayer.name() + ".mif", "utf-8", vLayer.crs(), 'Mapinfo File', datasourceOptions='FORMAT=MIF') ...


3

yes it does, use 'surface menu' in 'discover' tab menu to create grid from scattered elevation point (or DEM could be more helpful or more detailed imagery griding data). further 'method' just follow the menu subsequently for statistical/geostatistical analyses.



Top 50 recent answers are included