coordinate transform

May 5, 2010 at 8:06 AM

Can we show the sharpmap  tilelayer in a another projection than EPSG:900913? And hoe is this done?

my tile shema is current:

 double[] resolutions = new double[] {
                156543.033900000, 78271.516950000, 39135.758475000, 19567.879237500, 9783.939618750,
                4891.969809375, 2445.984904688, 1222.992452344, 611.496226172, 305.748113086,
                152.874056543, 76.437028271, 38.218514136, 19.109257068, 9.554628534, 4.777314267,
                2.388657133, 1.194328567, 0.597164283};

            TileSchema schema = new TileSchema();
            schema.Name = "OpenStreetMap";
            foreach (float resolution in resolutions) schema.Resolutions.Add(resolution);
            schema.OriginX = -20037508.342789;
            schema.OriginY = 20037508.342789;
            schema.Axis = AxisDirection.InvertedY;
           
            schema.Extent = new Extent(-20037508.342789, -20037508.342789, 20037508.342789, 20037508.342789);
            schema.Height = 256;
            schema.Width = 256;
            schema.Format = "png";
            schema.Srs = "EPSG:900913";
            return schema;

Coordinator
May 6, 2010 at 5:24 AM

I answered in the SharpMap forum:

http://sharpmap.codeplex.com/Thread/View.aspx?ThreadId=211621