On Wed, Jul 13, 2011 at 5:46 PM, ALBERT Aurélien
<[email protected]> wrote:
> Hi,
>
> I use the following colormap with elevation on geoserver :
>
> <RasterSymbolizer>
>        <ColorMap>
>                <ColorMapEntry color="#000000" quantity="-100.0"/>
>                <ColorMapEntry color="#0000FF" quantity="-98.0"/>
>                <ColorMapEntry color="#000100" quantity="-98.0"/>
>                <ColorMapEntry color="#0001FF" quantity="-96.0"/>
>                <ColorMapEntry color="#000200" quantity="-96.0"/>
>                <ColorMapEntry color="#0002FF" quantity="-94.0"/>
>                <ColorMapEntry color="#000300" quantity="-94.0"/>
>                <ColorMapEntry color="#0003FF" quantity="-92.0"/>
>                <ColorMapEntry color="#000400" quantity="-92.0"/>
>                <ColorMapEntry color="#0004FF" quantity="-90.0"/>
>                <ColorMapEntry color="#000500" quantity="-90.0"/>
>                <ColorMapEntry color="#0005FF" quantity="-88.0"/>
>                <ColorMapEntry color="#000600" quantity="-88.0"/>
>                <ColorMapEntry color="#0006FF" quantity="-86.0"/>
>                <ColorMapEntry color="#000700" quantity="-86.0"/>
>                <ColorMapEntry color="#0007FF" quantity="-84.0"/>
>                ....
>        </ColorMap>
> </RasterSymbolizer>
>
> My problem is : I only get color values like "#00xy00" and never values like 
> "#00xy17".
>
> I thought the interpolation mecanism should give me color value "#00067F" for 
> value -87 but blue component seems to never be interpolated.
>
> Should I change something in my colormap syntax ?

I think what you need is to use the GeoServer custom extension
type="intervals" mode.
Did you read the user guide about raster symbolizers?
http://docs.geoserver.org/latest/en/user/styling/sld-reference/rastersymbolizer.html

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to