Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6782 closed defect (fixed)

.osm to Shapefile segfaults

Reported by: kthujvu Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: segfault, osm
Cc:

Description

https://download.geofabrik.de/europe/germany/hamburg-latest.osm.bz2 (here is the version I used: https://transfer.sh/gY6nk/hamburg-latest.osm.bz2 )

$ ogr2ogr -f "ESRI Shapefile" -skipfailures hamburg-latest.osm.shp hamburg-latest.osm 
0Warning 6: Normalized/laundered field name: 'admin_level' to 'admin_leve'
ERROR 6: Geometry type of `Geometry Collection' not supported in shapefiles.  Type can be overridden with a layer creation option of SHPT=POINT/ARC/POLYGON/MULTIPOINT/POINTZ/ARCZ/POLYGONZ/MULTIPOINTZ/MULTIPATCH.
...10...20...30...40...50...60...70...80...90...Segmentation fault (core dumped)

Change History (4)

comment:1 by kthujvu, 7 years ago

Component: defaultOGR_SF

comment:2 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 37147:

ogr2ogr: fix segfault when converting OSM to shapefiles, and fix handling of transactions (trunk only, fixes #6782)

comment:3 by Even Rouault, 7 years ago

In 37148:

ogr_osm.py: test converting from OSM to shapefile with -skip (refs #6782)

comment:4 by Even Rouault, 7 years ago

In 37149:

ogr_osm.py: test converting from OSM to shapefile with all layers (refs #6782)

Note: See TracTickets for help on using tickets.