Hi,

I was able to solve this problem with adding an alpha-channel to the image 
using GDAL. 

The command is: 

gdalwarp -of GTiff -srcnodata 0 -dstalpha sourceFile.sid  resultFile.tif

After converting the image from RGB to RGBA the black edging was transparent 
without adding an extra style to the layer (I am using the default_raster style 
instead).

Ciao
Tobias

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Andrea 
Aime
Gesendet: Mittwoch, 30. Mai 2012 12:19
An: Neumann, Tobias
Cc: Simone Giannecchini; Dominik Affolter; [email protected]
Betreff: Re: [Geoserver-users] Rendering failed for GeoTiff layer with ColorMap 
styling on GS 2.1

On Wed, May 30, 2012 at 9:22 AM, Neumann, Tobias 
<[email protected]> wrote:
> Hi Simone,
>
> is there any possibility to apply a ColorMap to each single channel?
>
> I have got a SID-Image with 3 bands and a big fat black edging. I want to set 
> each´s band values 0 to 5 as transparent. Is there any possibility to style 
> the image this way?

Not with the current code, and with standard SLD.
We would need to add extensions to SLD to support multiband color maps (that 
would be "odd", since they would be value maps, not color maps, that is, each 
band getting a new value), and then code support for that

On trunk the problem could be addressed also by writing a WPS process that 
changes the values of the various bands, and then using it in SLD as a 
rendering transformation

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
mob:    +39 339 8844549

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to