This may be a case where the CQL was more forgiving then required. An Envelope
can only really be used with the BBOX filter (anything else is smoke and
mirrors).
Do we have a function to convert an Envelope to a Polygon? If so add that into
the mix explicitly in order to continue.
--
Jody Garnett
On Friday, 18 May 2012 at 9:33 AM, Gerson Galang 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.
>
> Oh, I was also running a WITHIN filter not DWITHIN.
>
> Cheers,
> Gerson
>
> From: Andrea Aime <[email protected]
> (mailto:[email protected])>
> Date: Thursday, 17 May 2012 5:05 PM
> To: Gerson Galang <[email protected] (mailto:[email protected])>
> Cc: "[email protected]
> (mailto:[email protected])"
> <[email protected]
> (mailto:[email protected])>, Mauricio Pazos
> <[email protected] (mailto:[email protected])>
> Subject: Re: [Geotools-gt2-users] ECQL filter parser bug
>
> On Thu, May 17, 2012 at 5:32 AM, Gerson Galang <[email protected]
> (mailto:[email protected])> wrote:
> > Hi,
> >
> > I might have found a bug with the ECQL filter parser. Below is the output
> > of running CQL.main and ECQL.main. The ECQL parser seems to only have a
> > problem with parsing ENVELOPE and not POLYGON.
> >
> > Should I add an entry to this in JIRA?
>
> Envelope is not a geometry, and dwithin expects a geometry as the second
> argument.
> That said, I see how being able to treat an envelope as a geometry surrogate
> in that case may be useful,
> could be a useful enhancement to the existing grammar
>
> Cheers
> Andrea
>
>
> --
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax: +39 0584 962313
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> ------------------------------------------------------------------------------
> 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]
> (mailto:[email protected])
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
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