You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm sorry, I'm not very experienced working with shapefiles so I'm not sure if I'm going to properly explain my problem. I am calling Shapefile.ReadAllFeatures(filepath)using GeometryBuilderMode.IgnoreInvalidShapes on the attached file, and I'm hitting ThrowCorruptedShapefileDataException(). I tried parsing through it a few different ways and it looks like it's throwing the error on the 495th record in the file. This exception mentions that there must be a 1-to-1 relationship between geometries and attributes, however if I instantiate a ShapefilePolygonReader and a DbfReader pointing to the appropriate files, they both show equal values as their respective RecordCount properties. I'm not sure what is causing the exception.
A couple of other pieces of software that read shapefiles are able to parse this correctly (a program called Alteryx, and NetTopologySuite.IO.Shapefile, which I an trying to port over to this library). I really like this one because it is significantly more performant, but am unable to do so yet.
Please let me know if there is any additional information I can provide to help diagnose.
Hello! I'm sorry, I'm not very experienced working with shapefiles so I'm not sure if I'm going to properly explain my problem. I am calling
Shapefile.ReadAllFeatures(filepath)
usingGeometryBuilderMode.IgnoreInvalidShapes
on the attached file, and I'm hittingThrowCorruptedShapefileDataException()
. I tried parsing through it a few different ways and it looks like it's throwing the error on the 495th record in the file. This exception mentions that there must be a 1-to-1 relationship between geometries and attributes, however if I instantiate aShapefilePolygonReader
and aDbfReader
pointing to the appropriate files, they both show equal values as their respectiveRecordCount
properties. I'm not sure what is causing the exception.A couple of other pieces of software that read shapefiles are able to parse this correctly (a program called Alteryx, and NetTopologySuite.IO.Shapefile, which I an trying to port over to this library). I really like this one because it is significantly more performant, but am unable to do so yet.
Please let me know if there is any additional information I can provide to help diagnose.
TestShapefiles.zip
The text was updated successfully, but these errors were encountered: