Gabriel Roldan ha scritto:
> I know why it doesn't work, FastBBOX is tricky, it defeats the purpose 
> of DuplicatingFilterVisitor:
> 
>      public Object accept(FilterVisitor visitor, Object context) {
>          Object result = visitor.visit(this, context);
>          if(!(result instanceof BBOX))
>              return result;
> 
>          BBOX clone = (BBOX) result;
>          if(clone.getExpression1().equals(getExpression1()) && 
> clone.getExpression2().equals(getExpression2()))
>              return new FastBBOX(property, envelope);
> 
>          return result;
>      }

It does not defeat the purpose at all imho.
A duplicate of a FastBbox is another FastBBOX.
We're asked to copy, not to transform

Cheers
Andrea


-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to