jonas-p / go-shp

Go library for reading and writing ESRI Shapefiles. Pure Golang implementation based on the ESRI Shapefile technical description.
MIT License
255 stars 67 forks source link

r.Shape() returns illegal row number #6

Closed sebastiankdittmann closed 7 years ago

sebastiankdittmann commented 7 years ago

I use this library to navigate through a shape file containing a road network (made out of polylines). After the r.Next() call the function Shape() returns the row number -1. This results into endless loops and makes the library useless for any file reading. Are there already known situations this habit appeared? Do you have any solutions? The road network has been created from a filtered OSM-file using QGIS.