I have a simple feature with a property named "#SHAPE#". I wanted to use
this property as an identifier in a CQL query, but this doesn't work:
#SHAPE# = 1
In GEOT-3122 quoting was added, but alas:
"#SHAPE#" = 1
Does not work. This is because it is interpreted as a XPath expression
so the SimpleFeaturePropertyAccessor isn't used. Fair enough, lets try
using some JXPath magic, as this works:
ff.property("./*[name() = '#SHAPE#']").evaluate(f)
But this doesn't parse in CQL because it doesn't allow spaces in XPath
expressions, so this is my working CQL:
"./*[name()='#SHAPE#']" = 1
Is there an easier way I overlooked? I wish there was an easier way to
do this, like a Hint to specify that the SimpleFeaturePropertyAccessor
should always be used even with special characters in the identifier.
Matthijs
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users