Hi,
I had a shape file with WGS84 UTM Zone 48N, I can't display the file to browser.
My code is:
var myLayer = new ShapeFileFeatureLayer(@"C:\shapefile\abcpolyline.shp");
myLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.County1;
myLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Proj4Projection proj4 = new Proj4Projection();
string prjFileText = System.IO.File.ReadAllText(@"C:\32648.prj");
proj4.InternalProjectionParametersString = Proj4Projection.ConvertPrjToProj4(prjFileText);
proj4.ExternalProjectionParametersString = Proj4Projection.GetWgs84ParametersString();
myLayer.FeatureSource.Projection = proj4;
var myOverlay = new LayerOverlay(Guid.NewGuid().ToString());
myOverlay.Layers.Add(Guid.NewGuid().ToString(), myLayer);
myOverlay.IsBaseOverlay = false;
mapMain.CustomOverlays.Add(myOverlay);
This is my shape file (size: 6M, I'm sorry cuz I can't attach the file)
Any suggestions?
Help, please! Thanks!
32648.zip (372 Bytes)