[Mapserver-users] Mapfile in WMS

Doug Cates doug at moximedia.com
Thu Nov 6 18:15:44 EST 2003


I hope that this snippet finds its way on to the WMS HOWTO page.


> -----Message d'origine-----
> De : Brent Fraser [mailto:bfraser at geoanalytic.com] 
> Envoyé : Thursday, November 06, 2003 12:58 PM
> À : nicolas.fortin at ec.gc.ca; Tom.Kralidis at ec.gc.ca
> Cc : mapserver-users at lists.gis.umn.edu
> Objet : Re: [Mapserver-users] Mapfile in WMS
> 
> 
> Nick,
> 
>   I use a little ASP to hide the map file name:
> 
> <%
> Server.ScriptTimeout = 360
> strRequest = Request.ServerVariables("QUERY_STRING")
> strURL =
> "http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\WMS\mymap.map&WM
> TVER=1.0.0&" & strRequest
> Dim objHTTP
> Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
> objHTTP.open "GET", strURL, false
> objHTTP.send ""
> Response.ContentType = objHTTP.getResponseHeader("content-type")
> Response.BinaryWrite objHTTP.responseBody
> Set objHTTP = Nothing
> %>
> 
> And just use the above ASP's URL in the WMS client.
> 
> Brent Fraser
> bfraser at geoanalytic.com





More information about the mapserver-users mailing list