WMS

Apr 16, 2008 at 3:11 PM
Hi i have tried the HOWTO abuot adding SMW layer and i get a on
"SharpMap.Layers.WmsLayer myLayer = new SharpMap.Layers.WmsLayer("Demis WMS", wmsUrl,t);"
and now i wondering if it is possible to get maps from http://www2.demis.nl/mapserver/request.asp ? or is it just a example?
I tryed with my own SMW server to add http://192.168.1.5/cgi-bin/mapserv.exe?map=C:/ms4w/apps/global-1.0/map/maps4ms-global-vector.map instead of http://www2.demis.nl/mapserver/request.asp but with same resoults.
any sugestions what im doing wrong ?
I'm using sharpmap v0.9
/Adam
Developer
Apr 16, 2008 at 5:10 PM
Yes, it should just work properly

You should be able to run the demis samples in both DemoWebSite and WinFormSamples
http://www.codeplex.com/SharpMap/SourceControl/FileView.aspx?itemId=30406&changeSetId=32815
http://www.codeplex.com/SharpMap/SourceControl/FileView.aspx?itemId=428730&changeSetId=32815
Apr 16, 2008 at 7:16 PM
Is your webserver behind a proxy?
If yes, you must add
System.Net.WebProxy proxyObject = new System.Net.WebProxy("192.168.0.1", 80);
myLayer.Proxy = proxyObject;