Tag Info

Hot answers tagged

3

I found it, this dirty hack is not elegant at all but it works great, my command-line solution as follows: ogr2ogr -f CSV tmp.csv your.shp -lco GEOMETRY=AS_WKT -s_srs EPSG:4326 -t_srs EPSG:4326 -overwrite cat tmp.csv | sed -e '1,1d' | tr ',' '\n' | sed 's/[A-Za-z"()]*//g' | tr ' ' ',' | sed 's/^,//' > your.shp.csv One caveat, you just need to avoid ...


3

Rightclick, Save As ... to a new file and different CRS will do what you want. You can not just change the SRID, but you have to recompute all coordinates as well. That is only done by Save As ..., and not with Set CRS for Layer


2

I know it's been 5 months since this question was posted, but I thought I'd add in my $.02. I, too, had the problem of ogr2ogr not being able to connect. In my case, it turned out that ogr2ogr expects the mysql.sock file to be in /tmp/. If you're running MAMP, your sock file is actually located in /Applications/MAMP/tmp/mysql/mysql.sock. Creating a ...


2

I believe you can to it with one ogr2ogr command. The following solution should work for all sort of geometries and therefore I tested it with a two-part multipolygon, one of the parts having a hole. Background: With -dialect SQLite GDAL tools can utilize all the SQL functions of Spatialite https://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html. ...


1

Geoconverter seems to be using GDAL but unfortunately you can't edit it's configuration. GDAL OSM driver is using a configuration file "osmconf.ini" for setting which tags will be converted into normal attributes http://www.gdal.org/drv_osm.html. You must install GDAL locally and edit the osmconf.ini file which by default has these settings for lines: ...


1

It's probably http://www.naturalearthdata.com/ or https://www.openstreetmap.org/ data, both freely available (depending on your use case).


1

It appears that pstoedit is your best bet: http://www.pstoedit.net/pstoedit/ Based on similar question: How to Import SVG into GIS?


1

ensure that none of your field names have spaces in them. I had similar problem and when I took out spaces it worked.


1

Problems: 1: the outcome of UnionSpatialPolygons is a spatial polygon 2: converting the result back into a spatial polygon data frame is a real pain -a. you need a very exact data frame to attach to a spatial polygon -b. data you used for UnionSpatialPolygons has more rows than the output and is not formatted in the way that is needed. My (ugly) ...


1

The Cshapes map might be of some use to you. It doesn't show disputed areas per se but does have historical boundary changes: http://nils.weidmann.ws/projects/cshapes/shapefile Digging further into Nils' site there is also the WarViews Project which also links to the International Conflict Research page which may be better maintained. This is assuming ...



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