From CGI to PHPMapscript

Bart van den Eijnden bartvde at XS4ALL.NL
Sat Jun 4 07:26:00 EDT 2005


Hi,

did you already look at the PHP/Mapscript reference?

http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html

Look especially at the functions:

queryByAttributes and drawQuery

If you need examples I would recommend downloading Chameleon and looking  
for examples in there.

http://chameleon.maptools.org/index.phtml

Best regards,
Bart

On Sat, 04 Jun 2005 13:08:25 +0200, Daniele Margotti  
<margottid at COMUNE.LUGO.RA.IT> wrote:

> 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
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the mapserver-users mailing list