Edgar,
I used ShapeFileFeatureLayer class to create a shapefile (all 5 files of "dbf", "shp", "shx", "ids", "idx"). When I opened the shapefile into wpfMap control, got a error of
“You don't have the corresponding idx file for your shape file. You can use the static method ShapeFileFeatureSource.BuildIndexFile() or ShapeFileFeatureLayer.BuildIndexFile() to build an idx file for the shape file, or you can set the RequireIndex property to false.”
Then I called ShapeFileFeatureLayer.BuildIndexFile() to build the files. However, I still got the same error message.
To get rid of this error, I had to set shpLayer.RequireIndex = false;
Would you give me a hint what’s wrong?
Thank you,
Mengbo