[Geoserver-devel] Styles and Filters

If a style rule associated with a layer has a Min or Max Scale Denominator, will that affect the filter passed to the FeatureSource?

For example, if I have a layer containing every road in the country, I’m clearly going to wait too long for that to transfer from my data store to geoserver for rendering. It seems like it would make sense to limit the set of Features returned to GeoServer if many of those features (say, local/residential roads) were filtered out at the database, rather than in Geoserver.

If the filters are included, can someone point me in the direction of how to get at them so that I can leverage them when querying my custom data store?

On Fri, Dec 16, 2011 at 9:52 PM, Chris Shain <chris@anonymised.com> wrote:

If a style rule associated with a layer has a Min or Max Scale Denominator, will that affect the filter passed to the FeatureSource?

No, if a rule is out of its scale range it will be eliminated from the style sheet, it’s the first optimization pass we do
on the style itself.

In fact if no rule exists that is in scale range nothing will be read at all.

Cheers
Andrea

Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

Please take note that GeoSolutions will be closed for Christmas holidays from 27/12 to 30/12