BlinkTagInc / gtfs-to-geojson

Generate geoJSON of transit route data from a GTFS file.
MIT License
114 stars 23 forks source link

Error: too many sweep line segments #18

Closed tafflin closed 1 year ago

tafflin commented 2 years ago

I get "Error: Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report." message when trying to run stops-dissolved generation with buffer size >500 meters. My config: { "agencies": [ { "agency_key": "allstops", "path": "/home/tafflin/Documents/gtfs-to-geojson/GTFS_NI.zip", "exclude": [ "stop_times", "trips", "shapes" ] } ], "bufferSizeMeters": 800, "coordinatePrecision": 5, "outputType": "agency", "outputFormat": "stops-dissolved", "zipOutput": false } GTFS_NI.zip

brendannee commented 2 years ago

That sounds like an issue with the polygon-clipping library in use.

For such a large amount of stops, I suggest trying to just generate geojson of the stops, then importing that geojson into QGIS and manually creating the buffer there.

tafflin commented 1 year ago

I checked the issue once again with a newer version you updated recently and I still get this message with buffersize of 800 meters for the same GTFS file. However I don't have any issues generating a geojson with 400 m buffer from the same file.

brendannee commented 1 year ago

I just tried it with the zipfile linked above and the config with the latest GTFS-to-Geojson and it did work (it took a while 1592 seconds). (see attached geojson file saved as .txt as GitHub comments do not allow .geojson file uploads) NI.txt