[gdal-dev] OSM to GDB

John Oliver john.oliver at rsi-visuals.com
Thu Feb 20 10:03:32 PST 2025


Excuse my ignorance. I am not a developer.  But I'm trying what should be a relatively simple task.
I need to extract a subset of OSM to Esri FileGDB format.

My OSM file is valid:
C:\Program Files\QGIS 3.34.1>ogrinfo C:\TEMP\World_8_3.osm
INFO: Open of `C:\TEMP\World_8_3.osm'
      using driver `OSM' successful.
1: points (Point)
2: lines (Line String)
3: multilinestrings (Multi Line String)
4: multipolygons (Multi Polygon)
5: other_relations (Geometry Collection)

But when I try to extract to GDB I get the following:

C:\Program Files\QGIS 3.34.1>ogr2ogr -f OpenFileGDB -spat 39 30 40 41 -ds_transaction C:\TEMP\TEST4.gdb  C:\TEMP\World_8_3.osm
Warning 1: Input datasource uses random layer reading, but output datasource does not support random layer writing
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 6: Unsupported geometry type

Needless to say the created GDB is empty.

Anyone got any idea how to make ERROR 6 go away and hopefully get some output


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250220/c8139ffc/attachment.htm>


More information about the gdal-dev mailing list