Hello,
I'm trying to use a WMS layer as Background. The WMS server I use has the capabilities to provide some images using EPSG:4326 or EPSG:2039. Images are stored on the server using EPSG:2039 projection (Israel TM Grid), so for performance reasons, I would like to be able to use the native projection of the images.
How can I set MapSuite to use this projection?
It seems that the SRS code placed in the WMS requests is EPSG:4326 all over the time. Here is the URL used by OpenLayers to request my WMS server.
Here is my C# code:
protected void Page_Load(object sender, EventArgs e) {
Map1.MapUnit = GeographyUnit.Meter;
Map1.CurrentExtent = new RectangleShape(120000, 680000, 220000, 580000);
Map1.BackgroundMap.WmsMap.Name = "Israel";
Map1.BackgroundMap.WmsMap.ServerUri = new Uri(@"localhost/mapserver/cgi-bin/mapserv.exe?map=..\\maps\\WmsIsrael.map&");
Map1.BackgroundMap.WmsMap.Parameters.Add("layers", "Background");
Map1.BackgroundMap.WmsMap.Parameters.Add("srs", "EPSG:2039");
Map1.MousePosition.Enabled = true;
Map1.PanZoomBar.Enabled = true;
}
Thanks a lot
Nicolas