On Mon, Jun 27, 2011 at 8:02 PM, ALBERT Aurélien
<[email protected]> wrote:
> I use Geoserver 2.0.2
>
> I tried following styles :
>
>           <ColorMap extended="true">
>              <ColorMapEntry color="#000000" quantity="-500" label="nodata" 
> opacity="0.0" />
>              <ColorMapEntry color="#000000" quantity="-100" label="values" 
> opacity="1.0" />
>              <ColorMapEntry color="#00FFFF" quantity="100" label="values" 
> opacity="1.0" />
>            </ColorMap>
>
>           <ColorMap extended="true">
>              <ColorMapEntry color="#000000" quantity="-500" label="nodata" 
> opacity="0.0" />
>              <ColorMapEntry color="#000000" quantity="-100" label="values" 
> opacity="1.0" />
>              <ColorMapEntry color="#FFFFFF" quantity="100" label="values" 
> opacity="1.0" />
>            </ColorMap>
>
> I was expecting, for data range -100 to 100, to get pixel colors from #000000 
> to #00FFFF :
>
> #000001
> #000002
> #000003
> #000004
> ...
> #0000FF
> #0001FF
> #0002FF
> #0003FF
> ...
> #00FFFF

In order to get from fully black to cyan you expect the ramp to pass
by solid blue?
It makes some sense, but not sure how that could be coded.
What you get is the simplest color ramp implementation, linearly interpolate all
color component from first to second color.

Getting a random gradient generator from the net you get exactly the same
behavior:
http://tools.dynamicdrive.com/gradient/

If you want to go through blue you have to configure it as the value for 0,
then you'll get from white to solid black to solid blue, and then from blue
to cyan.

Out of curiosity, what kind of application generates gradients the way
you'd expect?

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

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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to