TileLayer OSM in another coordinate system

Topics: Data Access, SharpMap Project, SharpMap v0.9 / v1.x, WinForms Controls
May 5, 2010 at 8:09 AM
Edited May 5, 2010 at 8:09 AM

Is it posible to show tileLayer in another coordinate system? and how could be this done?

Curent im using opensource street as source.

And this tile shema:

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;

May 6, 2010 at 5:04 AM
Edited May 6, 2010 at 5:10 AM


It is currently not possible to project raster data (and thus tiles) in SharpMap. It would be a nice features, but if possible it would still be slow and ugly.

So, TileLayer itself is not bound to a specific coordinate system but a tile source is. So you need a tile source that is specific for your coordinate system. I don't think that there are many local OSM tile sources available but you could ask around in the community, and maybe you could build your own. Here is blog that shows how to do it for the Dutch coordinate system: http://www.justobjects.org/blog/?p=45

May 8, 2010 at 7:21 PM

Thank you for the answer, im trying now to transform my layers to the tilelayer projection but i cant get the exact position on house numbers with the arial bing tile, after the transformation anyone got also this problem?