Ciao Albert,
on 2.0.2 the "extended" keyword might not work. See
http://jira.codehaus.org/browse/GEOT-3455

I would try 2.0.3 or 2.1.1

Let us know.
Regards,
Simone Giannecchini
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

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

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



On Tue, Jun 28, 2011 at 2:02 PM, ALBERT Aurélien
<[email protected]> wrote:
> I use this layer to get elevation data and generate a 3d mesh on client side.
>
> Now, I use this style :
>
>                                        <ColorMapEntry color="#000000" 
> quantity="0"/>
>                                        <ColorMapEntry color="#0000ff" 
> quantity="255"/>
>                                        <ColorMapEntry color="#000100" 
> quantity="256"/>
>                                        <ColorMapEntry color="#0001ff" 
> quantity="511"/>
>                                        <ColorMapEntry color="#000200" 
> quantity="512"/>
>                                        <ColorMapEntry color="#0002ff" 
> quantity="767"/>
>                                        <ColorMapEntry color="#000300" 
> quantity="768"/>
>                                        <ColorMapEntry color="#0003ff" 
> quantity="1023"/>
>                                        <ColorMapEntry color="#000400" 
> quantity="1024"/>
>
> So, on client side, I can read the pixel RGB value and compute elevation 
> value :
>
> For example :
>
> - pixel color is #0001ba
> => elevation value is 0x0001ba
> => elevation value is 442
>
> And retrieve my elevation values with maximum precision (but the elevation 
> map is very ugly to see).
>
> Then I use another layer to get a texture to put on my mesh, and the result 
> is fine !
>
> By the way, the difficulty is that the client software is a browser 3d 
> plugin, and I can easily process only bitmap data, processing other data need 
> a lot of work.
>
> Regards,
>
> Aurelien
>
>
> -----Message d'origine-----
> De : [email protected] [mailto:[email protected]] De la part de 
> Andrea Aime
> Envoyé : lundi 27 juin 2011 20:48
> À : ALBERT Aurélien
> Cc : Simone Giannecchini; Mike; [email protected]
> Objet : Re: RE : [Geoserver-users] GeoServer with elevation data
>
> 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