<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi All,<br>
<br>
I am stuck in one position, hope I will get solution from here.<br>
<br>
I am calling Map server layer with help of Sharpmap WMS client, I have<br>
created two layers, one is of Shrapmap layers and second one is of Map<br>
server layer, I am using below Map file to accomplish this<br>
<br>
MAP<br>
<br>
NAME GMAP_DEMO<br>
STATUS ON<br>
SIZE 400 300<br>
SYMBOLSET ../etc/symbols.txt<br>
SHAPEPATH "../data"<br>
IMAGECOLOR 255 0 0<br>
FONTSET ../etc/fonts.txt<br>
UNITS DD<br>
EXTENT -180 -90 180 90 # Geographic<br>
CONFIG "PROJ_LIB" "C:/ms4w/apps/gmap/proj/nad/epsg"<br>
TRANSPARENT off<br>
<br>
<br>
#<br>
# Start of web interface definition<br>
#<br>
WEB<br>
<br>
#<br>
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root<br>
# of the drive where the .MAP file resides.<br>
#<br>
IMAGEPATH "C:/ms4w/tmp/ms_tmp/"<br>
IMAGEURL "/ms_tmp/"<br>
<br>
METADATA<br>
"wms_srs" "EPSG:4326"<br>
END<br>
END<br>
<br>
<br>
#<br>
# Start of layer definitions<br>
#<br>
<br>
<br>
LAYER<br>
PROJECTION<br>
"proj=latlong"<br>
"ellps=WGS84"<br>
END<br>
NAME "world_poly"<br>
DATA 'C:/ms4w/apps/gmap/shapefile/world_adm0.shp'<br>
STATUS ON<br>
TYPE POLYGON<br>
CLASS<br>
NAME 'The World'<br>
STYLE<br>
OUTLINECOLOR 0 0 0<br>
END<br>
END<br>
END # layer<br>
<br>
<br>
END # Map File<br>
<br>
<br>
and I am calling this above map by my WMS client here is my WMS clint<br>
<br>
string wmsUrl =<br>
"<a href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/gmap_modified.map" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/gmap_modified.map</a>";<br>
WmsLayer layWms = new WmsLayer("GMAP_DEMO", wmsUrl);<br>
layWms.AddLayer("world_poly");<br>
layWms.SetImageFormat(layWms.OutputFormats[1]);<br>
//Map Server Transparancy<br>
layWms.Transparancy = false;<br>
layWms.SetImageFormat("image/png");<br>
layWms.ContinueOnError = false;<br>
layWms.BgColor = System.Drawing.Color.Red;<br>
layWms.Enabled = true;<br>
//Set timeout to 5 seconds<br>
layWms.TimeOut = 5000;<br>
<br>
//Map Server Projection ID<br>
layWms.SRID = 4326;<br>
map.Layers.Add(layWms);<br>
<br>
The problem is this not showing any map, only blank screen is coming.<br>
<br>
Please guide me to do this.<br>
<br>
Thanks,<br>
Vivek<br></blockquote></div>