[Mapserver-users] Querypoint

Eric Bridger eric at gomoos.org
Mon Apr 14 01:34:09 PDT 2003


(I'm not sure of the PHP syntax, but in Perl mapscript .. )

When you add your points to the layer you must save the shape index.
$layerObj->{index} and associate it with the mySql key value you want to
use.  When you query the layer, it's this index which is returned.

You must also create a template for your layer:
$layerObj->{template} = "junk.html"  in order to make the layer
queryable.

There is a perl mapscript example at:

http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex14

Eric


On Fri, 2003-04-11 at 21:38, jose.quintal at cfe.gob.mx wrote:
> I have generated dynamic points with PHP-Mapscript. Now as I can do to him,
> so that when doing to him click to a point brings data to me of a data base
> of Mysql.
> 
> Thanks
> 
> José Antonio Quintal Castillo
> Comision Federal de Electricidad
> Mexico
> 
> 
> 
> 
> _______________________________________________
> 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