query by expression

Daniel Morissette morissette at dmsolutions.ca
Mon Jan 29 14:11:14 EST 2001


Robert Ofarrell wrote:
> 
> Daniel,
> 
> Is it possible to query by expression and get the shapes returned by such
> a query?
> 
> Something to the effect of $map->queryUsingExpression();
> 
> Robert O'Farrell
> University of Queensland, Brisbane, Australia

Robert,

There is no queryUsingExpression() call... but you might be able to
achieve the same result if you set the expression in the query object of
the layer, and then use queryUsingRect() with a rectangle the size of
the map.  I've never done it, but that should work.

-- 
------------------------------------------------------------
 Daniel Morissette                morissette at dmsolutions.ca
                 http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.




More information about the mapserver-users mailing list