From CGI to PHPMapscript

Daniele Margotti margottid at COMUNE.LUGO.RA.IT
Sat Jun 4 04:08:25 PDT 2005


Hi list,

how can I create the following image using PHP Mapscript?

http://sit.comune.lugo.ra.it/cgi-bin/mapserv?
&mode=itemnquerymap&map_querymap_size=698 523&mapxy=1729559.6025
4927024.888&scale=6980&map=/dati/sit/Lugo_base.map&layers=CTR_5000 Mappali
Quadrocatasto Fabbricati&qlayer=Mappali&qitem=PARTKEY&qstring=/E730   77
344|E730   77  383|E730   77  384|E730   77  427|E730   77  479/

I can easily create it with CGI Mapserver, but now I need to create it
with PHP Mapscript.

My variables are:
 - map_querymap_size (I need to modify it: in the mapfile I have another
size);
 - mapxy (I have already calculated the center point of my new map, I only
need to specify it);
 - scale (same as mapxy);
 - layers (not all layers of the mapfile should be drawn);
 - qlayer, qitem and qstring.

How can I perform an "itemnquerymap" with PHP Mapscript?

Thank you,
    Daniele



More information about the MapServer-users mailing list