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.
Cheers,
Gerson Galang
Research Software Engineer
Melbourne eResearch Group
The University of Melbourne
On 22/05/12 12:32 AM, "Mauricio Pazos" <[email protected]> wrote:
>On Friday, May 18, 2012 08:07:58 AM Andrea Aime wrote:
>> > Thanks Andrea,
>> >
>> > I just thought that ECQL being an extension of CQL should at least
>> > support a query that gets parsed (without any issues) by the CQL
>>filter
>> > parser.
>> Ah, it gets parsed by the CQL filter parser? Now that's odd, and
>>probably
>> unintended.
>> Mauricio is the (E)CQL guy, let's hear from him
>Hi everyone, the WITHIN and DWITHIN are expressions valid for CQL and ECQL
>
>For example:
>
>"WITHIN(ATTR1, POLYGON((1 2, 1 10, 5 10, 1 2)) )"
>
>"DWITHIN(POINT(5 7), POINT(1 2), 10, kilometers)"
>
>Have you any problem to execute some of this?
>
>Maybe, I lost something?
>
>cheers
>--
>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