Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

hang when processing some shapefiles #3538

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

hang when processing some shapefiles #3538

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: pnorman
[Submitted to the original trac issue database at 9.31pm, Saturday, 12th February 2011]

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

@openstreetmap-trac
Copy link
Author

Author: JoshD
[Added to the original trac issue at 6.26pm, Monday, 22nd August 2011]

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.

@openstreetmap-trac
Copy link
Author

Author: pnorman
[Added to the original trac issue at 5.59pm, Monday, 9th September 2013]

ogr2osm is now hosted at https://github.com/pnorman/ogr2osm, tickets should be opened there if still valid.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant