pnorman / ogr2osm

pnorman's version of UVM's Rewrite of ogr2osm
Other
78 stars 46 forks source link

unhandled geometry, type: 3003 #39

Closed humanitiesNerd closed 3 years ago

humanitiesNerd commented 6 years ago

In trying to reproduce the steps described at this mechanical import proposal page I use this command line, similar to what they reccommend

python ogr2osm.py -v -f 493011_ctr/CTR_493011_pol.shp -e 32633 --no-upload-false

but I get a lot of errors like this

unhandled geometry, type: 3003

and the resulting file is empty

I m on Fedora 27, I installed gdal with dnf and checked out ogr2osm through git

You can gat the shape files I am using here

roelderickx commented 3 years ago

Type 3003 is a 3D polygon with an M value that is part of a linear referencing system.

You have to decide what you want to do with the third dimension, the osm file format has no support for this information. The most straightforward solution is to throw away the third dimension, the translation file on the OSM wiki page has been modified to do this.