[UMN_MAPSERVER-USERS] Creating querymap via CGI parameters
Skweda O'Bomsawin
sobomsawin at KASSINI.COM
Mon Oct 18 07:00:35 PDT 2004
I never be able to get Mapserver 4.0 works in querymap mode (error 500). I
finally succeeded with Mapserver 4.2. My URL looks like this:
http://localhost/cgi-bin/mapserv_42?map=/var/www/html/demo.map&layers=poly+
bkgd+lakes+roads&mapsize=791+749&imgext=-2341026.679536+-976279.0592349669+3
029014.36292+4108266.1303309673&mode=nquerymap&imgbox=53+221+664+721
Coordinates are in Lambert (meters). You can also cache some variables like
mode and mapsize. You need a dummy query layer in your mapfile (or in
hidden tag). I use an imgbox because this is a nquerymap (query with a
rubberband square).
Skweda O'Bomsawin
-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de Kralidis,Tom [Burlington]
Envoyé : 15 octobre 2004 20:00
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [UMN_MAPSERVER-USERS] Creating querymap via CGI parameters
Hi,
In the itasca demo, querying features displays a standard querymap, as
well as cached query.
Looking at the HTML, it looks like:
Standard querymap: ms_tmp/DEMO10978846173120.gif
Cached query:
/cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfile=c:/ms4w/
tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln2&mode=map&
size=200+200
How can one replicate this behaviour (i.e. output a querymap) with CGI
parameters through MapServer CGI?
Thanks
..Tom
=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14
More information about the MapServer-users
mailing list