query by expression

Stephen Lime steve.lime at dnr.state.mn.us
Mon Jan 29 11:14:04 PST 2001


I wanted to add that this is what itemquery is turning into in the next release. Dan's
suggestion is a good workaround for the moment.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Daniel Morissette <morissette at dmsolutions.ca> 01/29/01 01:11PM >>>
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