This project has moved. For the latest updates, please go here.

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", "");
//gdtLayer.ContinueOnError = true;
//gdtLayer.Envelope = new SharpMap.Geometries.BoundingBox(-86.7900619506836, 34.4756317138672, -86.2557678222656, 34.9922981262207);
gdtLayer.SpatialReferenceSystem = "EPSG:4326";
gdtLayer.TimeOut = 5000;
gdtLayer.SRID = 4326;

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,