Re: User-defined colormap for raster layers?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: User-defined colormap for raster layers?

Alex Petkov


Should I assume that it is not possible yet to use a RasterSymbolizer?
I followed the raster.sld template, actually I just changed the values in
the colormap.

 Am I doing something wrong?

 Thanks,

 Alex
>
>
>
>

>              Alex Petkov

>              <[hidden email]

>              s>
To
>              Sent by:
[hidden email]
>              geoserver-users-a         et

>              [hidden email]
cc
>              forge.net

>
Subject
>                                        [Geoserver-users] User-defined

>              06/29/2005 01:17          colormap for raster layers?

>              PM

>

>

>

>

>

>
>
>
>
>
> I am making an 8-bit grayscale geotiff from scalar data, with pixel
values
> in the range 0-255.
>
> Is it possible to define a colormap (like in the SLD spec document) and
use

> it to display color values in RGB for a grayscale raster?
>
> So far I am trying with the colormap below, but I am still getting
> grayscale image as the rendered output:
> ============================================
>
>                         <ColorMap>
>                                <ColorMapEntry color="#000000"
> quantity="0"/>
>                                <ColorMapEntry color="#00fa00"
> quantity="50"/>
>                                <ColorMapEntry color="#14f500"
> quantity="75"/>
>                                <ColorMapEntry color="#28f502"
> quantity="100"/>
>                                <ColorMapEntry color="#3cf505"
> quantity="110"/>
>                                <ColorMapEntry color="#50f50a"
> quantity="125"/>
>                                <ColorMapEntry color="#64f014"
> quantity="130"/>
>                                <ColorMapEntry color="#7deb32"
> quantity="135"/>
>                                <ColorMapEntry color="#78c818"
> quantity="165"/>
>                                <ColorMapEntry color="#38840c"
> quantity="170"/>
>                                <ColorMapEntry color="#2c4b04"
> quantity="190"/>
>                                <ColorMapEntry color="#ffff00"
> quantity="200"/>
>                                <ColorMapEntry color="#dcdc00"
> quantity="210"/>
>                                <ColorMapEntry color="#b47800"
> quantity="220"/>
>                                <ColorMapEntry color="#c85000"
> quantity="225"/>
>                                <ColorMapEntry color="#be4100"
> quantity="230"/>
>                                <ColorMapEntry color="#963000"
> quantity="245"/>
>                                <ColorMapEntry color="#3c0200"
> quantity="250"/>
>                                <ColorMapEntry color="#ffffff"
> quantity="255"/>
>                                               </ColorMap>
>
> =============================================
>
>
> As always, many thanks:-)
>
> Alex
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users