[Mapserver-users] Mapfile in WMS
nicolas.fortin at ec.gc.ca
nicolas.fortin at ec.gc.ca
Thu Nov 6 10:43:37 PST 2003
Thanks a lot Brent!
This works prefectly!
And I can put my asp script where I want it to be.
Nick
-----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
----- Original Message -----
From: <nicolas.fortin at ec.gc.ca>
To: <Tom.Kralidis at ec.gc.ca>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Thursday, November 06, 2003 9:16 AM
Subject: RE : [Mapserver-users] Mapfile in WMS
Thanks Tom, glad to hear from you!
Like I already said to Paul, we're using Win2K with IIS 5.0
In the WMS HOW-TO, there're two suggestions, one using Unix and the other
Windows/Apache.
Can I make something similar but with Win2k/IIS ?
Nick
-----Message d'origine-----
De : Tom Kralidis [Burlington]
Envoyé : Thursday, November 06, 2003 10:56 AM
À : Fortin,Nicolas [SteFoy]; mapserver-users at lists.gis.umn.edu Cc :
Gillespie,Ian [Burlington] Objet : RE: [Mapserver-users] Mapfile in WMS
You can set an environment variable in your web server config to set this
such that the "&map=....." is not in the URL. Check the MapServer
wms-server howto.
Cheers
..Tom
============================================
Tom Kralidis
Systems Scientist
Integrated Environmental Applications Branch
Knowledge Integration Directorate
Environment Canada
867 Lakeshore Road
Burlington, ON
L7R 4A6
Canada
Tel: +01-905-336-4409
http://www.cise-scie.ca/ ============================================
-----Original Message-----
From: nicolas.fortin at ec.gc.ca [mailto:nicolas.fortin at ec.gc.ca]
Sent: Thursday, November 06, 2003 9:40 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Mapfile in WMS
Hi!
I just test some Mapfile for WMS and it works pretty fine but I wonder if I
can avoid putting the path to the mapfile in the parameter.
Ex:
http://blablabla/cgi-bin/mapserv.exe?map=tutorial366/s2/s2ex8.map&REQUEST=Ge
tCapabilities
I want it like
http://blablabla/cgi-bin/mapserv.exe?map=s2ex8.map&REQUEST=GetCapabilities
This way, I have to put the Mapfile at the root, right?? Or perhaps I missed
something....?
Thx,
Nicolas Fortin
Mathématicien, Programmeur, Analyste de données
SMC-Québec Hydrologie, Environnement Canada
1141, Rte de l'Église, Sainte-Foy(QC) G1V 4H5
(418)648-2516
nicolas.fortin at ec.gc.ca <mailto:nicolas.fortin at ec.gc.ca>
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list