On Saturday 07 August 2010 10:17:21 pm Jesse Eichar wrote:
> Its hard to explain the reasoning, but I have a feature with a terrible
> attribute name but I need to  access it using CQL (a dynamic external
> graphic).  The attribute name is basically {[crazy_name]} (including the {[
> characters).  Is there a way that I can escape the illegal characters in
> CQL? or perhaps I have to create a property accessor to add the illegal
> character.
>
> Thoughts?
>
> Jesse
Hi Jesse, I guess that your  crazy_name has local characters like characters 
with different types of accents or others.

Unfortunately the OGC CQL specification only allows: 

<simple Latin letter> ::= <simple Latin upper case letter>
                           | <simple Latin lower case letter>
<simple Latin upper case letter> ::=
       A | B | C | D | E | F | G | H | I | J | K | L | M | N | O
       | P | Q | R | S | T | U | V | W | X | Y | Z
<simple Latin lower case letter> ::=
       a | b | c | d | e | f | g | h | i | j | k | l | m | n | o
       | p | q | r | s | t | u | v | w | x | y | z


I opened the following issue to solve that sort of problems
http://jira.codehaus.org/browse/GEOT-3122

The idea is to use the same SQL strategy, that is, using double quote

"crazy_name"

cheers

-- 
Mauricio Pazos
www.axios.es

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to