[Geoserver-users] SLD - Substitution in ColorMapEntry?

Hi,
is it possible to create an env substitution of the 'color' entry of the
'ColorMapEntry'?
    ...
      <FeatureTypeStyle>
        <Rule>
          
          <MinScaleDenominator>0</MinScaleDenominator>
          <MaxScaleDenominator>10000</MaxScaleDenominator>
          <RasterSymbolizer>
            <Opacity>
              <ogc:Function name="env">
                <ogc:Literal>Opa</ogc:Literal>
                <ogc:Literal>1.0</ogc:Literal>
               </ogc:Function>
            </Opacity>
            <ChannelSelection>
              <GrayChannel>
                <SourceChannelName>1</SourceChannelName>
              </GrayChannel>
            </ChannelSelection>
            <ColorMap type="values" extended="false">
              <ColorMapEntry color="#ff6600" quantity="0" label="0"
opacity="1" />
              <ColorMapEntry color="#ffffff" quantity="1" label="1"
opacity="0" />
            </ColorMap>
          </RasterSymbolizer>
        </Rule>
      </FeatureTypeStyle>

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/SLD-Substitution-in-ColorMapEntry-tp5143743.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Tue, Jun 3, 2014 at 2:56 PM, wwsmith <wwsmith@anonymised.com> wrote:

Hi,
is it possible to create an env substitution of the 'color' entry of the
'ColorMapEntry'?

No, it's not possible, the SLD standard says those are static values.
It's always possible to develop a vendor extension to make them into
Expressions
(the env function is an expression) but it would of course require some
work.

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------