[gdal-dev] Convert multipolygons from OSM
lhomme.xavier at gmail.com
Tue Feb 7 11:31:23 PST 2017
I'm trying to extract multipologons from a PBF file and convert them to a
Fgdb or ashapefile :
More pricesely , I'm trying to extract waterway on Paris, And I don't
succeed to retreive the Seine river. But only some part.
Here is my cmdline :
Ogr2ogr -f "FileGDB" c:\Users\xle\Documents\ArcGIS\idf.gdb -nln waterway
-config OSM_CONFIG_FILE myosmconf.ini -skipfailures -overwrite -gt 65536
-dialect SQLITE -sql "SELECT GEOMETRY, osm_id, waterway as fclass, name
from multipolygons where waterway is not null " ile-de-france-latest.osm.pbf
waterway has been added to the myosmconf.ini
# common attributes
# note: for multipolygons, osm_id=yes instantiates a osm_id field for the
id of relations
# and a osm_way_id field for the id of closed ways. Both fields are
# keys to report as OGR fields
# keys that should NOT be reported in the "other_tags" field
# uncomment to avoid creation of "other_tags" field
# uncomment to create "all_tags" field. "all_tags" and "other_tags" are
Is there some other parameter thaht I should take into account ?
Or should I try with OSMOSIS to convert first to a OSM file then with
Ogr2Ogr as I saw on some blogs ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev