[Mapserver-users] queryByAttributes Mapscript
Armin Burger
armin.burger at libero.it
Tue Feb 25 05:40:32 PST 2003
Sven,
the attribute query is done by setting a filter first, e.g.
$layer->setFilter($queryexpression)
and then performing the query
$layer->queryByAttributes(...)
where $queryexpression can be any definition described for the filter/class expression of the map file.
Armin
> Hi list,
> I try to find out how to make queries by attributes. The function
> "queryByAttributes(mapObj, integer mode)"
> does this, but how can I specify the attribute?
> Then I got the hint to use the following function
> "yourlayerobj.queryByAttributes(yourmapobj, yourqueryitem,
> yourquerystring, mapscript.MS_SINGLE)",
> but this function is only supported by a not stable version of 3.7*.
> Is there any other possibility to make queries with attributes a user
> may specify?
> Thanks in forward,
> best regards,
> Sven
> _______________________________________________
> 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