Hey,
I've got two shapefiles that for some reason simply refuses to work in ThinkGeo. The routine I'm using works fine for plenty of other shapefiles, but when I attempt to index the shapefile or render it in any way, I get the following error:
System.IO.IOException: The spatial index generation failed for an unknown reason. Please see the inner exception. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
at ThinkGeo.MapSuite.Core.xdad12102199d8695.xfff82833a56cfe2e(Byte[] x1c828e238ef853a2, Int32 xedf77fd65cf83220)
at ThinkGeo.MapSuite.Core.xdad12102199d8695.ReadRecord(Int32 recordIndex)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureSource.GetFeaturesByIdsCore(IEnumerable`1 ids, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.GetFeatureById(String id, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.GetFeatureById(String id, ReturningColumnsType returningColumnNamesType)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureSource.BuildIndexFile(String shapePathFilename, String indexPathFilename, Projection projection, String columnName, String regexExpression, BuildIndexMode buildIndexMode)
--- End of inner exception stack trace ---
at ThinkGeo.MapSuite.Core.ShapeFileFeatureSource.BuildIndexFile(String shapePathFilename, String indexPathFilename, Projection projection, String columnName, String regexExpression, BuildIndexMode buildIndexMode)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureSource.BuildIndexFile(String shapePathFilename, BuildIndexMode buildIndexMode)
at ThinkGeo.MapSuite.Core.ShapeFileFeatureLayer.BuildIndexFile(String pathFilename, BuildIndexMode rebuildExistingIndexMode)
Additionally, the index does properly build in 2.0. Both of the affected shapefiles are the same, just with different dbfs. This one is pretty critical for us, any ideas? I can send the shapefile along if need be, just let me know!