Hi there,

I'm using cql to add parameter values for my color map e.g. 

<ColorMapEntry color="${env('PlantColor','#7200ff')}" quantity="255"
label="values" opacity="${env('PlantOpacity', 1)}" /> 

The PlantColor parameter works. However I can't get the opacity to work. The
error is:

line 27: cvc-datatype-valid.1.2.1: '${env('PlantOpacity', 1)}' is not a
valid value for 'double'.

I've tried various combinations of single quotes, double quotes, no quotes
etc. for the attributes.  I understand it wants a number not a string, but
how do you get that to work with the cql expression? It does say you can use
cql for the opacity but I can't find an example syntax.

Best regards,

Anna



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

------------------------------------------------------------------------------
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to