I’m having some issues setting projections still.
All my data (shapefiles) come in WGS84 unprojected, with units in decimal degrees. I want to project all of these to standard mercator projection, which is -180 to +180 degrees left to right.
I THINK this is what I want: http://spatialreference.org/ref/epsg/wgs-84-world-mercator. I set it up like this:
Map.MapUnit = GeographyUnit.DecimalDegree;
ShapeFileFeatureLayer.BuildIndexFile(mainShapeFilePath, BuildIndexMode.DoNotRebuild);
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(mainShapeFilePath);
Proj4Projection proj4Projection = new Proj4Projection();
proj4Projection.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj4Projection.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(3395);
worldLayer.FeatureSource.Projection = proj4Projection;
However, the shapefile does not display correctly. What am I doing wrong?