Hi,
I have the attached shape file, which is similar to other I want to use, as they are provided by our client. I am currently try to these to display on a Web Map with no success. I believe they are UTM 12, based on the prj file.
The shape opens fine in Map Suite Explorer, and I don’t get any exceptions reading the file.
I know I will eventually need to possibly project them if they need to go on top of other shapes, but I wanted a simple test to ensure that things worked first.
I have use other decimal degree based shapes with the code below and works correctly
Code Sample:
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#ffffff"));
Map1.MapUnit = GeographyUnit.Meter;
string path = @“C:\shapes\Conn_Crk Rec_Line_v2.shp”;
ShapeFileFeatureLayer shapeLayer = new ShapeFileFeatureLayer(path);
shapeLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
shapeLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.Pipeline1;
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.IsBaseOverlay = false;
staticOverlay.Layers.Add(shapeLayer);
Map1.CustomOverlays.Add(staticOverlay);
UTMShape.zip (61.2 KB)