On Tuesday, May 22, 2012 09:33:35 AM Gerson Galang wrote:
> Hi Mauricio,
>
> WITHIN-POLYGON combination works with CQL and ECQL.
>
> It's the WITHIN-ENVELOPE combo that doesn't work with ECQL. I just
> reported the issue because WITHIN-ENVELOPE worked with CQL.
>
> If I run ECQL.toFilter("WITHIN(the_geom, ENVELOPE(0, 1, 0, 1))").toString()
> I get back
> [ 1 within POLYGON ((0 1, 0 0, 1 0, 1 1, 0 1)) ]
>
> One of the coordinates, "1" was used instead of the geometry attribute,
> "the_geom" in the filter expression.
>
> But just like what Andrea and Jody said, if it's not really your intention
> to support the conversion of ENVELOPE to POLYGON, it might not be an issue
> then.
Yes It wasn't the intention. But, now, taking into account the Filter Encoding
2.0 (version 2.0.0). The BinarySpatialOperator (within is an example) has got
as operator 2 a SpatialDescriptor which is an union of geometry, envelop or
value reference.
I think it could be an improvement. The filter interface/implementation would
require changes too.
>
> Cheers,
>
>
> Gerson Galang
> Research Software Engineer
> Melbourne eResearch Group
> The University of Melbourne
--
Mauricio Pazos
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users