Jody Garnett ha scritto:
> Andrea Aime wrote:
>> So you would use:
>> FilterFactory ff = CommonFactoryFinder.getFilterFactory(new
>> Hints(Hints.LOOSE_BBOX, true));
>> Gt2BBOX box = (Gt2BBOX) ff.bbox(...);
>>
>> where Gt2BBOX would be:
>>
>> public interface Gt2BBOX extends BBOX {
>> public boolean isLoose();
>> }
>>
>> and then sql encoders and the like could check for the interface and
>> the return type in order to decide how to encode the filter?
> That works; I was thinking of taking it over to the renderer (since the
> definition of the style is separate from how we are using it).
> FilterFactory ff = CommonFactoryFinder.getFilterFactory(new
> Hints(Hints.LOOSE_BBOX, true));
> DuplicatorFilterVisitor copy = new DuplicatorFilterVisitor( ff );
>
> And then for each filter used:
>
> filter.accepts( visitor );
> filter = visitor.getCopy();
Ouch no, this would be bad!
If the SLD has a filter that uses BBOX, we want it to behave like
OGC recomended, the above would turn it into a loose one too.
The idea I had was to only create the bbox filter specifically
for paint area catching, and leave whatever extra filter was
specified thru SLD or CQL as is.
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel