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?
Regards,
Gerson
CQL Filter Tester
("quit" to finish)
>WITHIN(the_geom, ENVELOPE(0, 1, 0, 1))
<?xml version="1.0" encoding="UTF-8"?>
<ogc:Within xmlns="http://www.opengis.net/ogc"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml">
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">0,1 0,0 1,0 1,1 0,1</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</ogc:Within>
ECQL Filters Tester
Seperate with ";" or "quit" to finish)
>WITHIN(the_geom, ENVELOPE(0, 1, 0, 1))
Exception in thread "main" java.lang.ClassCastException:
org.geotools.filter.LiteralExpressionImpl cannot be cast to
org.opengis.filter.Filter
at
org.geotools.filter.text.commons.AbstractFilterBuilder.getFilterList(Abstrac
tFilterBuilder.java:155)
at
org.geotools.filter.text.ecql.ECQLCompiler.getFilterList(ECQLCompiler.java:1
76)
at
org.geotools.filter.text.commons.CompilerUtil.parseFilterList(CompilerUtil.j
ava:218)
at org.geotools.filter.text.ecql.ECQL.toFilterList(ECQL.java:192)
at org.geotools.filter.text.ecql.ECQL.toFilterList(ECQL.java:174)
at org.geotools.filter.text.ecql.ECQL.main(ECQL.java:273)
------------------------------------------------------------------------------
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