Hi guys,
We have only seen this issue in one shapefile and I have attached it so you can take a look. What happens is that the last four columns of data in the shapefile are removed if we run a BuildIndex. This happens in our MapSuite Desktop application and it also happens if you rebuild in the MapSuite GIS Editor. The columns are still there, just the data disappears.
Please let me know what you find out.
Thanks!
Steve
DBF_Error.zip (41.7 KB)
Rebuilding shapefile removes some data
Hi Steven,
I can’t reproduce your issue, I
get the source columns with “Excel” as following diagram:
I open the shape file with
“GisEditor”, the issue can’t be reproduced also as following diagram:
Both of them correspond on last
four columns, I make a test program as following statements:
string path = @"C:\Downloads\DBF_Error\ln3.shp";
ShapeFileFeatureSource source = new ShapeFileFeatureSource(path);
ShapeFileFeatureSource.BuildIndexFile(path, BuildIndexMode.Rebuild);
source.Open();
Collection<Feature> features = source.GetAllFeatures(ReturningColumnsType.AllColumns);
All of column values are
correct.
Thanks,
Don,
My apologies, original post was incorrect. Rebuilding the index does not cause a problem. The problem is caused when we call the static function Rebuild on the shapefile as follows.
ShapeFileFeatureLayer.Rebuild(ShapePathFileName)
Please have another try and let us know what you find.
Thanks!
Steve
Hi Steven,
Thanks for reporting this. We’ve found there is a bug, our
developer has fixed it in the latest daily build. Would you please get it (8.0.0.331
or 8.0.331.0) or a higher version and have a try?
If the issue still persisted, please feel free to let us know.
Thanks,
Kevin
Kevin,
Thanks, that fixed it.
Steve
You’re always welcome, Steven, any other question please feel free to let us know.
Regards,
Kevin