That worked. Thanks. From: Michael Smith <[email protected]> Sent: Thursday, February 20, 2025 1:38 PM To: John Oliver <[email protected]>; [email protected] Subject: Re: [gdal-dev] OSM to GDB
ogr2ogr -f OpenFileGDB -spat 39 30 40 41 -nlt MULTIPOLYGON -ds_transaction C:\TEMP\TEST5.gdb C:\TEMP\World_8_3.osm multipolygons You need to just pass the single layer to ogr2ogr Mike From: John Oliver <[email protected]<mailto:[email protected]>> Date: Thursday, February 20, 2025 at 1:31 PM To: Michael Smith <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: RE: [gdal-dev] OSM to GDB Tried the -nlt option and the ERROR did go away, which is promising but output is still empty C:\Program Files\QGIS 3.34.1>ogr2ogr -f OpenFileGDB -spat 39 30 40 41 -nlt MULTIPOLYGON -ds_transaction C:\TEMP\TEST5.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. From: Michael Smith <[email protected]<mailto:[email protected]>> Sent: Thursday, February 20, 2025 1:08 PM To: John Oliver <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Subject: Re: [gdal-dev] OSM to GDB I believe you need to do this by layer, eg points/lines/etc. One GDB per geometry class. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: gdal-dev <[email protected]<mailto:[email protected]>> on behalf of John Oliver via gdal-dev <[email protected]<mailto:[email protected]>> Reply-To: John Oliver <[email protected]<mailto:[email protected]>> Date: Thursday, February 20, 2025 at 1:03 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [gdal-dev] OSM to GDB 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 _______________________________________________ gdal-dev mailing list [email protected]<mailto:[email protected]> https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
