So what is needed here ... list of reserved words that must be escaped when
encoded?

I think the square brackets are just to introduce precedence, isolating
point won't help since it will start trying to treat it as geometry.

For reference the grammar is here:
http://old.geotools.org/ECQL-Parser-Design_110493908.html

--
Jody Garnett

On 30 March 2015 at 16:46, Kevin Smith <[email protected]> wrote:

> I've noticed that ECQL.toCQL doesn't escape WKT keywords.  So
> <PropertyName>point</PropertyName> is encoded to just point rather than
> "point" or [point]. When this is parsed in turn, it is interpreted as a
> WKT literal, although it's lacking the rest of the expression and so fails.
>
> The bracket notation also fails to resolve this when parsing, it still
> interprets [point] as being the start of a WKT literal rather than an
> attribute name.  When double quoted ("point") it escapes against the WKT
> interpretation as expected.
>
> I may be missing something.  When I looked up the formal CQL spec hidden
> in the CSW spec, i couldn't find any indication of either bracket or double
> quote escaping of property names.  Were these added for ECQL?
>
> --
>
> Kevin Smith
>
> Software Engineer | Boundless <http://boundlessgeo.com/>
>
> [email protected]
>
> +1-778-785-7459
>
> @boundlessgeo <http://twitter.com/boundlessgeo/>
>
>
> <http://twitter.com/boundlessgeo/>
>
> [image: http://boundlessgeo.com/]
> <http://boundlessgeo.com/>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> GeoTools-Devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to