Hi there,                                    
I'm using CSS to Style a layer in Geoserver, something like:
{  mark: url('${getImageUrl(id)}');   mark-mime: "image/png";   mark-rotation: 
[rotationAngle];}
getImageUrl is a custom Geotools function of mine. The problem is that 
Geoserver doesn't accept the id as a parameter, it gives the following 
exception:
ERROR [geoserver.ows] - java.lang.IllegalArgumentException: Invalid cql 
expression 'getImageUrl(id)'    at 
org.geotools.renderer.style.ExpressionExtractor.splitCqlExpressions(ExpressionExtractor.java:122)
Some one advised me to use getImageUrl("id") (with double quotes), 
this worked fine with any CSS field other than mark:url.

Some one advised me to try getImageUrl('${"id"}'), but it doesn't work.

I need to pass the feature id to that getImageUrl function, Any help?

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to