Hello,
I have an issue regarding the path location of the shp file.
When I'm doing it this way :
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(
@"C:\DATA_SVN\OLRnet\System\OLRnet\trunk\Resources\MapData\cntry02.shp");
everything works.
But when I'm trying to get the resource without the absolute path:
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer("~/Resources/MapData/cntry02.shp");
or
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(MapPath("~/Resources/MapData/cntry02.shp")); I have some issues with the error : "The projection is not open. Please open it before calling this method.
How could it be possible to "link" the shp file which is in the folder "Resources" of my VS solution ???