This project has moved and is read-only. For the latest updates, please go here.

WMS Layer and GPX-Track positioning

Topics: Data Access, General Topics, SharpMap v2.0, WinForms Controls
Aug 30, 2007 at 8:14 AM

I'm trying to dispaly a track from a gpx-file on a map. The used code is like this:

SharpMap.Map map;
SharpMap.Layers.WmsLayer layer = new SharpMap.Layers.WmsLayer("WMS layer", "");
layer.SpatialReferenceSystem = "EPSG:4326";
SharpMap.Layers.VectorLayer layGpx = new SharpMap.Layers.VectorLayer("Gpx");
layGpx.DataSource = new SharpMap.Data.Providers.Gpx(@"f:\test.gpx");

So far it works good. I got the map and i got the Track from my Gpx-File on the map. But the Problem is, that the Position of the Track on the map is not right. The Track should be located in France, but it i shown in Afrika. Could anybody tell me what's the problem in my code? Is the any Transformation needet?

Thanks Andreas