Hi,
We’re trying to load a shapefile into memory using class “ShapeFileFeatureSource” but it throws an exception with the following message/stacktrace:
System.IO.FileLoadException
The record is invalid, please call Validate method to check the failed reason.Record index: 48
at ThinkGeo.MapSuite.Core.ShapeFile.sBQ=(Int32 recordIndex)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureSource.GetAllFeaturesCore(IEnumerable1 returningColumnNames) at ThinkGeo.MapSuite.Core.FeatureSource.<GetAllFeatures>b__d(IEnumerable
1 cns)
at ThinkGeo.MapSuite.Core.FeatureSource.eBQ=(IEnumerable1 returningColumnNames, Func
2 getFeatures, IEnumerable1 filters) at ThinkGeo.MapSuite.Core.FeatureSource.GetAllFeatures(IEnumerable
1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.GetAllFeatures(ReturningColumnsType returningColumnNamesType)
(…)
There’s some problem with shapefile data and we don’t understand what is it.
We’ve uploaded a Visual Studio project into WeTransfer service with which you can replicate this problem. You can download it with the following link:
Best regards,
BdaF