Hi,
I am using SLD with filters based on properties of the features. Geoserver works great using them, but when you have a lot of data behind it starts getting slow...
I think I already asked if filters where gonna be interpreted by Geoserver in the SQL sent to PostGIS or after. Now filters are done in java after fetching all data from the database.
It is a problem in my case because I have a table with around 1.5 million features and I need to create maps filtering by one of its properties. If the bounding box is small then there is no problem because not so much data is fetched from the database and filter by geoaserver, but if the bounding box is big then fetching the 1.5 million records is just too slow...
More info. I am setting the filter in the request by doing something like:
http://geoserver/wms?service=Getmap...SLD=http//slds/features_by_taxon.php?taxon=Laala
The SLD as you see is a document generated dynamically with PHP (it just takes the parameter and put it inside). I need to do it like this because SLD_BODY would get too long (the style apart of filtering is pretty long).
I was wondering if anybody has any idea on how to do something like this now. I even have thought on creating PostGIS views and dynamically register them in Geoserver all in one request! But then I though that is a little bit crazy...
Any hint where could I hack the geoaserver code? (I would prefer to avoid this!)
Thanks.
Javier.