Hi folks,

Sorry to still be banging on about BBox filters but I've spent a while
following the creation of the filter in my debugger (using the code
posted previously) and it just looks broken to me.

When you pass a ReferencedEnvelope to the bbox factory method the
first thing that happens is that it's converted to a JTS Envelope and
subsequently to a Polygon.  The BBoxExpressionImpl constructor checks
to see if it has been passed a ReferencedEnvelope in order to get the
SRS but, of course, it hasn't been.  The SRS is sort of kludged in at
the end of the bbox(Expression, double, double, double, double, String
srs) method but then not used at all during evaluation of the filter.

Is this not broken ? :-)

Michael

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to