[Mapserver-users] queryByAttributes Mapscript

Armin Burger Armin Burger <armin.burger@libero.it>
Tue, 25 Feb 2003 14:40:32 +0100


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@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users