Timeline for Remove 3D geometry in shapefile using OGR
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 25, 2016 at 4:39 | answer | added | Frank Jing | timeline score: 3 | |
Oct 14, 2015 at 19:53 | vote | accept | Ryan Garnett | ||
Oct 14, 2015 at 19:52 | answer | added | user30184 | timeline score: 15 | |
Oct 14, 2015 at 19:49 | comment | added | Ryan Garnett | It worked. You should move your comment over to an answer so I can mark it as correct. | |
Oct 14, 2015 at 19:44 | comment | added | Ryan Garnett | Thank you! I was wondering if the -dim was referencing geometry | |
Oct 14, 2015 at 19:34 | comment | added | user30184 |
Then simply write a new shapefile as ogr2ogr -f "ESRI Shapefile" output_2d.shp input_zm.shp -dim 2 gdal.org/ogr2ogr.html. However, I do not know if it works if you really has POINTZM shapefile because GDAL does not support M gdal.org/drv_shapefile.html. Let's hope it just skips M values.
|
|
Oct 14, 2015 at 19:28 | comment | added | Ryan Garnett | My preference would be to have the geometry as a point, not a pointZM | |
Oct 14, 2015 at 19:21 | comment | added | user30184 | Is it enough to update Z and M to zero or do you want that the type of the shapefile is changed into POINT? | |
Oct 14, 2015 at 18:07 | comment | added | Vince | Technically, shapefiles with elevation values and measures are 4-D, not 3-D. | |
Oct 14, 2015 at 17:42 | history | asked | Ryan Garnett | CC BY-SA 3.0 |