[Geoserver-users] Filtering GetLegend Request

Hi,

Has anybody a solution for filtering a GetLegend request so that only
legend items for features within a given bounding box are returned?
We have a dataset with tons of legend items, but usually only small
areas are investigated with a very limited number of legend items
needed...

Crischan

--
Christian Wygoda
Fachhochschule Eberswalde
Projekt PEPGIS / Geowebdienste
Telefon 03334-657-429

And how should a man who has lived in towns and schools know anything
about the wonders of the woods? (James Fennimore Cooper)

Someone might have a better answer, but looking at the GetLegend code it does not seem possible, and would take some non-trivial modifications.

One thing we could do is optionally support the addition of a FILTER or a BBOX parameter. When specified actually do a query against the layer to figure out what features apply and then based that filter the rules applied from the SLD.

As with most feature requests, your best option is to submit it in the tracker and hopefully a developer will scratch the itch. Or if you or your organization is willing to fund such a feature request that is another option.

-Justin

cwygoda@anonymised.com wrote:

Hi,

Has anybody a solution for filtering a GetLegend request so that only
legend items for features within a given bounding box are returned?
We have a dataset with tons of legend items, but usually only small
areas are investigated with a very limited number of legend items
needed...

Crischan

--
Christian Wygoda
Fachhochschule Eberswalde
Projekt PEPGIS / Geowebdienste
Telefon 03334-657-429

And how should a man who has lived in towns and schools know anything
about the wonders of the woods? (James Fennimore Cooper)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.