Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is is possible to parameterize ColorMapEntry in a style. I want to be able to specify different values for "quantity" in ColorMapEntry when I request a raster layer.

Thanks!

share|improve this question
    
I assume you have seen the the many color gradient section of geoserver's SLD cookbook. Are you asking about supplying a parameter in place of the quantity? Something like: quantity=<parameter>value</parameter> –  katahdin Jan 7 '13 at 13:08
    
That's right. I want to be able to have a parameter or an expression with this parameter instead of a hardcoded value so that I can set it in my wms request. –  user14010 Jan 7 '13 at 21:02
    
For example: <sld:ColorMap> <sld:ColorMapEntry color="#ff00ff" opacity="1.0" quantity="-1.11111E7" label="no design"/> ... </sld:ColorMap> I want to be able to set quantity dynamically when I request a layer by passing in a parameter on a wms request. –  user14010 Jan 8 '13 at 0:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.