This project is read-only.

Projection to Google Mercator

Mar 19, 2012 at 4:49 PM
Hi Is it possible to create an ICoordinateTransformation from KnownCoordinateSystems.Projected.UtmWgs1984.WGS1984UTMZone20S to EPSG:900913 ? @"PROJCS[""Popular Visualisation CRS / Mercator"", GEOGCS[""Popular Visualisation CRS"", DATUM[""Popular Visualisation Datum"", SPHEROID[""Popular Visualisation Sphere"", 6378137, 0, AUTHORITY[""EPSG"",7059]], TOWGS84[0, 0, 0, 0, 0, 0, 0], AUTHORITY[""EPSG"",6055]], PRIMEM[""Greenwich"", 0, AUTHORITY[""EPSG"", ""8901""]], UNIT[""degree"", 0.0174532925199433, AUTHORITY[""EPSG"", ""9102""]], AXIS[""E"", EAST], AXIS[""N"", NORTH], AUTHORITY[""EPSG"",4055]], PROJECTION[""Mercator""], PARAMETER[""False_Easting"", 0], PARAMETER[""False_Northing"", 0], PARAMETER[""Central_Meridian"", 0], PARAMETER[""Latitude_of_origin"", 0], UNIT[""metre"", 1, AUTHORITY[""EPSG"", ""9001""]], AXIS[""East"", EAST], AXIS[""North"", NORTH], AUTHORITY[""EPSG"",900913]]"; I`m using the DotSpatial.Projections library in my Sharpmap Project and cannot get it working.
Mar 20, 2012 at 10:53 PM
Edited Mar 20, 2012 at 10:53 PM

I have checked and transformation is right..

            
ProjectionInfo source = KnownCoordinateSystems.Projected.UtmWgs1984.WGS1984UTMZone20S;
            ProjectionInfo target = KnownCoordinateSystems.Projected.World.WebMercator;
 
            double[] xy = new double[2] { 3214846, 8424631 };
            double[] z = new double[1] { 0 };
 
            Reproject.ReprojectPoints(xy, z, source, target, 0, 1);
 
            MessageBox.Show(string.Format("{0} {1}",xy[0],xy[1]));