Hot answers tagged

84

For ESRI its almost always going to be: Lat = Y Long = X It's easy to get backwards. I've been doing this for years but still need to think about it sometimes. On a standard north facing map, latitude is represented by horizontal lines, which go up and down (North and South) the Y axis. Its easy to think that since they are horizontal lines, they would ...


15

Using PostGIS, I used ST_ConvexHull to simplify the polygon for a faster result: Get the furthest Point: SELECT Villages_v4_Trial_region.geom as FarPoint from ( SELECT ST_PointN(ST_ExteriorRing(ST_ConvexHull(Villages_v4_Trial_region.geom)), generate_series(1, ST_NPoints(ST_ExteriorRing(ST_ConvexHull(Villages_v4_Trial_region.geom))))) as points, geom FROM ...


12

For unix bash: #!/bin/bash for FILE in *.mif # cycles through all files in directory (case-sensitive!) do echo "converting file: $FILE..." FILENEW=`echo $FILE | sed "s/.mif/_new.shp/"` # replaces old filename ogr2ogr \ -f "ESRI Shapefile" \ "$FILENEW" "$FILE" done exit If you're working in a *nix-based OS (ie Linux or OS X), there are ...


12

For sake of posterity, the short answer is that MapInfo and FDO (AutoDesk technology) are far removed from any development with SQLite, compared to the members of the SQLite Consortium. MapInfo and FDO (AutoDesk) would be contributing binary to their downstream users, via their products and services. Spatialite is specked under a triumvirate of licenses--...


11

Inside an MPK you'll find an MXD and a fGDB. (You may find shapefiles, tiffs or other files depending on how the MPK was created, but odds are you'll find data in the fGDB). With this knowledge, if you have an application other than ArcGIS that can read MXDs and fGDB, you can simply unzip an MPK (using something like 7zip. The built in Windows Zip Extractor ...


11

QGIS can do the same. On the Advance Digitizing Toolbar is the 'Split Features' button: It appears more simple than MapInfo. 1) Make the layer editable 2) Select the 'Split Features' tool 3) Select the node you wish to split at. This work with polygons also.


11

Yes, you can use the Dockable MirrorMap plugin which allows you to create multiple canvas windows: You can download this from the menubar: Plugins > Manage and Install Plugins


8

Check your environment_variable: setx GDAL_DATA "C:\Program Files\GDAL\gdal-data" setx GDAL_DRIVER_PATH "C:\Program Files\GDAL\gdalplugins" setx PROJ_LIB "C:\Program Files\GDAL\projlib" setx PYTHONPATH "C:\Program Files\GDAL\"


7

One way is read excel file as feature , then pipe output to WorkSpaceRunner which takes file name as input . WorkSpaceRunner runs another Workspace which takes file as input and does it magic there. I have used WorkSpaceRunner is case where ineeded to read hundreds of las files and reproject and export them to database. Normal workspace which loaded all ...


7

If I understand your question correctly, you might have values in the Map-Lot field that look like the following: 017-001 017-002 018-121 And you only want to show the portion after the "-". So, the above would be displayed like this: 001 002 121 If your Lot number is always going to be three characters long, then you can use the following label ...


7

In ArcGIS for Desktop, you can use the tool Densify. Adds vertices along line or polygon features. Also replaces curve segments (Bezier, circular arcs, and elliptical arcs) with line segments.


7

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 = "\\some\\really\\long\\...................


7

You can use ISO 8859-1 encoding to read Spanish text correctly (along with various other countries).


6

GRASS will run on an Raspberry Pi (ARM) so should have no issues on Windows RT. http://grasswiki.osgeo.org/wiki/Raspberry_Pi


6

I only need to get RGB values for polygon features. In particular solid fill vegetation and geology. I made a rough as guts ArcPy tool that fits my purpose. The tool gets the user to nominate their layer and symbology field in ArcMap. The tool then loops through groups of "like sybology" values exporting them as rasters and interrogating them for their RGB ...


6

Tab files should be fine. From GDAL 2.0 onwards features can be updated and modified: http://www.gdal.org/drv_mitab.html Mid/Mif files cannot be updated.


6

You will not be able to port MapInfo styles directly to QGIS, mainly because MapInfo styles are per-feature, whereas QGIS styles are rule-based. That said, you can have a go with Nathan Woodrow's tool to convert styles: https://nathanw.net/2011/08/08/new-tool-mapinfo-to-qgis-style-converter/. It does a pretty good job. But, I'd just start again. It's not ...


6

I set the PROJ_LIB environment variable to point to the PROJ.4 data directory (where proj.db lives) and this problem has been solved,hope that is useful to you.


6

From the answers in the comments: 1. In order to concatenate unique values with group by clause: group_concat(distinct Locality) Order by: 2. Data ordering (by the data sample link from comment): From your data, it looks like that the start/End chainage fields are connected with the direction & order so this looks the most promising sql (see image): ...


6

From How to remove overlapping areas from a polygon in MapInfo Pro the procedure seems to be to: Select the region from which the overlapping areas will be removed. Objects > Set Target (32-bit) or Spatial > Set Target (64-bit). Select the overlapping regions. Objects > Erase (32-bit) or Spatial > Erase (64-bit). The overlapping polygons will ...


5

For QGIS no it will not run on RT because it's ARM and we don't build for that yet. I have no doubt that it can be done, just not done yet.


5

You could use the freely available Level 2 GADM shapefile data for Greenland, which comes in EPSG:4326 (Lat/Lon projection) by default, and import it into R using the GDAL functionalities offered by the rgdal package. Then, define the geographic extent for Washington Land and crop the previously imported shapefile. Make sure you have all the required ...


5

MapBasic, the scripting language of MapInfo Pro, has a number of functions/statements that can be helpful for you: TableInfo(): can be used to get basic information about an open table PathToTableName$(): can extract the table name, as MapInfo Pro sees it, from a file path PathToFileName$(): can extract a filename with extension from a file path Update: can ...


5

In short no, it is not possible to simply export and import from one to the other. All these software as also other GIS have it's own formats for projects/workspaces and especially map layouts / composers are not interchangeable at all. There are many reasons for that. Simply all software work in quite different way though there are similarities. All you ...


5

Depending on what you need to be exposed to the internet, it might be the easiest just to change the connector port of the Connect Tomcat to 80 in C:\Program Files\Pitney Bowes\SpectrumSpatialAnalyst\Tomcat7\AnalystConnect\conf\server.xml Below are some further notes (assuming Windows server). You may also contact the PB tech support team if you continue ...


5

Great answer by @Knightshound although I would probably add that if you want to do this manually using the Split Features tool then make sure you enable the snapping options, set a tolerance and snap it to vertex. Alternatively, you could select your desired line and use the Explode lines tool which will split your line at each vertex (you can't specify the ...


5

I searched for "mapbasic regex" and found what looks to be what you may need posted in the nyalldawson.net blog: If you’re not familiar with regular expressions, they’re an extremely powerful tool for string manipulation. They can be somewhat daunting at first, but with a bit of practice they’ll open up all kinds of string processing which would ...


5

Maybe the table is an Extended MapInfo Table build with a 64 bit version of MapInfo Pro? Open the tab file in a text editor and see if it says "Type NATIVE" or "Type NATIVEX" NATIVEX is the new Extended MapInfo Table format which isn't supported by the MITAB driver and so not supported by QGIS. You can try to save it into a "standard" MapInfo Table using ...


5

This is fairly easy to do in MapInfo (works in all versions). Have your layer open in the map/layout window. Right click anywhere on the map and select "Change View" Change your Cartographic Scale to the value you want.


5

Issue with the latest QGIS, you wont encounter this if you use 3.8 or earlier. I believe it has something to do with the latest version of Proj


Only top voted, non community-wiki answers of a minimum length are eligible