Hi all,

I'm investigating supporting rendering transformations[1] in the GeoServer
CSS module[2]. This functionality is implemented in SLD by using OGC Filter
encoded expressions to construct WPS processes and parameters, so I was
expecting to be able to use ECQL to support them in CSS.  However, I seem
to be running into some trouble.  Building against a recent snapshot of
GeoTools 8, I found that the following ECQL does not work as I hoped:

> gs:Contour(
>       parameter("data"),
>       parameter("levels", 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800)
>   )


Investigating further, I see that I get a different error for undefined
functions than for ones with a colon-delimited identifier, which suggests
that function names don't actually support namespacing.  The behavior I'm
seeing is as follows:

> scala> org.geotools.filter.text.ecql.ECQL.toExpression("f(123)")
> org.geotools.filter.text.cql2.CQLException: Function not found. Parsing :
> f(123).
> scala> org.geotools.filter.text.ecql.ECQL.toExpression("g:f(123)")
> org.geotools.filter.text.cql2.CQLException: Encountered "(" at line 1,
> column 4.


Should this work? Am I doing it wrong? Any insight would be appreciated.

Another issue I encountered is that the SLDTransformer does not currently
support encoding Transformations.  That one I think I can resolve, but I
want to make sure it actually works in the CSS converter before submitting
a patch.

[1]: http://docs.codehaus.org/display/GEOTOOLS/Rendering+transformations
[2]: http://docs.geoserver.org/stable/en/user/community/css/index.html

--
David Winslow
OpenGeo - http://opengeo.org/
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to