Opened 9 years ago

Closed 7 years ago

#3538 closed defect (wontfix)

hang when processing some shapefiles

Reported by: pnorman Owned by: ivan@…
Priority: minor Milestone:
Component: ogr2osm Version:
Keywords: Cc:


When processing the attached shapefile, ogr2osm never exits Simplifying area segments

Attachments (1) (4.5 KB) - added by pnorman 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by pnorman

Attachment: added

comment:1 Changed 9 years ago by JoshD

Priority: majorminor

This seems to fail on "STORAGE_SHED". Putting in some print statements, it's stuck in an infinite loop simplifying one of the segments. Perhaps it's bad geometry?

Simplifying area segments
Area -254: [[-257, -259, -261, -262, -263]] ({'name': 'STORAGE SHED', 'coerced': 'yes', 'grade': 'above', 'name_at': 'Storage Shed', 'number': '', 'anno_lvl': '0', 'SHAPE_Leng': '     16.46535376390'})
Ring: [-257, -259, -261, -262, -263]
Segment: -257
Node: -255
Node: -256
Segment: -262
Node: -260
Node: -255
Node: -255
Node: -256
Node: -258
Node: -260
Node: -255
Node: -255
[... repeat]

I've never encountered this except in the supplied tea.shp file (and I've used the tool quite a bit), so I think the geometry is corrupt. I'm going to downgrade this to minor unless we get other reports.

comment:2 Changed 7 years ago by pnorman

Resolution: wontfix
Status: newclosed

ogr2osm is now hosted at, tickets should be opened there if still valid.

Note: See TracTickets for help on using tickets.