[Mapserver-users] Mapfile in WMS
Brent Fraser
bfraser@geoanalytic.com
Fri, 7 Nov 2003 09:21:34 -0700
Good point. The "&WMTVER=1.0.0&" in my ASP was a workaround for a specific
WMS client.
Brent
----- Original Message -----
From: "Daniel Morissette" <morissette@dmsolutions.ca>
To: "Doug Cates" <doug@moximedia.com>
Cc: <mapserver-users@lists.gis.umn.edu>
Sent: Friday, November 07, 2003 8:48 AM
Subject: Re: RE : [Mapserver-users] Mapfile in WMS
Good idea, I've added it to the docs in CVS for versions 4.0 and 4.1 and
that should show up on the UMN website in the next update.
BTW, I've removed the hardcoded "&WMTVER=1.0.0&" in the URL since this
value has to come from the client and we shouldn't hardcode it.
Daniel
Doug Cates wrote:
>
> I hope that this snippet finds its way on to the WMS HOWTO page.
>
>
>
>>-----Message d'origine-----
>>De : Brent Fraser [mailto:bfraser@geoanalytic.com]
>>Envoyé : Thursday, November 06, 2003 12:58 PM
>>À : nicolas.fortin@ec.gc.ca; Tom.Kralidis@ec.gc.ca
>>Cc : mapserver-users@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@geoanalytic.com
>
>
>
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users