On Thu, Mar 3, 2011 at 10:18 PM, NNL <[email protected]> wrote:

> Hello!
>
> I have a raster layer with a .tif file as a datastore, wich has a black
> background color.
> So when this layer is on top of another - black color overlaps the first
> one.
>
> How can I exclude this color from the layer?
>
> I suppose, styling it as a colormap in an SLD style cannot be applied,
> because this raster is not gradient - it's an imagery.
> Maybe I can somehow edit the raster itself before publishing? I've tried to
> cut background in photoshop, but then it still displays but in white color.
>
> Can anyone help me?
>

At the moment the only plugin that can shave off background pixels and make
them transparent is the mosaic one.
So in order to get where you want you should do a mosaic of just one tile.

The background color handling is actually generic and could be moved up into
the base reader classes so that it
can be used for all formats... it's something we'd like to do anyways, but
not a quick change.

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 333 8128928

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

-------------------------------------------------------
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to