In looking at the source the attribute queries do respect both class expressions and scales. However, a typical attribute query will not result in a scale being set beforehand because attribute queries tend not to be tied to a map unlike "click on a map" type queries.
The whichShapes method is CLASS independent and is really just a convenience method. The other query functions use whichShapes internally to setup the list of candidate shapes and they themselves apply specific rules to include or exclude a candidate shape. For queries we look at the availability of a presentation template for example. What does your class structure look like? Steve >>> On 2/2/2009 at 6:15 PM, in message <[email protected]>, "J.J. Schlafley" <[email protected]> wrote: > I have found that the functions LayerObj.whichShapes() and > LayerObj.queryByAttributes ignore any CLASS expression or maxscaledenom in > the LAYER. The results returned by these functions seem to come from "any" > feature in the layer's dataset at the given spatial extent and/or attribute > query. Anyone else ever come across this? > > Thanks, > > JJ > > > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
