Mapserver WMS Layer

Jul 17, 2007 at 4:04 PM
Hello All,

I am having trouble adding a WMS layer using SharpMap. To me it appears that I am getting back a blank map from my mapserver (UMN Mapserver). I know that the map server is configured right because we have other applications which access this mapserver as a WMS layer through open layers.

SharpMap.Map map = new SharpMap.Map(new System.Drawing.Size(wd, ht));

SharpMap.Layers.WmsLayer gdtLayer = new SharpMap.Layers.WmsLayer("GDT PG WMS", "http://testmap.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/test.map&");
//gdtLayer.ContinueOnError = true;
//gdtLayer.Envelope = new SharpMap.Geometries.BoundingBox(-86.7900619506836, 34.4756317138672, -86.2557678222656, 34.9922981262207);
gdtLayer.SpatialReferenceSystem = "EPSG:4326";
//gdtLayer.AddLayer("bound");
//gdtLayer.AddLayer("hydro");
//gdtLayer.AddLayer("landmark");
gdtLayer.AddLayer("streets");
//gdtLayer.AddLayer("roads_anno");
gdtLayer.SetImageFormat(gdtLayer.OutputFormats0);
gdtLayer.TimeOut = 5000;
gdtLayer.SRID = 4326;
map.Layers.Add(gdtLayer);

But demis mapserver returns the map fine. I don't have any errors on the page.

Any kind of suggestions/ help is greatly appreciated.

Thank you,
Murali.