Milton Jonathan ha scritto: > Hello > > This is probably a stupid question but.. how does one set a > "transparency color" for a RasterSymbolizer? What I mean is to define a > specific color to be transparent (as we do in everyday image editing > tools), so that the background of rotated satellite images doesn't show > on the map. > > The important thing here is that the raster may have more than 1 band or > channel (e.g., 3 RGB bands, or n bands with a ChannelSelection to choose > which ones will be represented as RGB). For images with a single gray > channel, it looks as if I could achieve this result by setting an > opacity value for a specific entry in a ColorMap. However, how do I > specify a ColorMapEntry whose quantity is a combination of the 3 bands? > (e.g., yellow should be transparent)
As far as I know the SLD spec simply forgot to cover this use case (among others). So... right now there is no way. An existing workaround is to setup an output transparent color for mosaics, that work, but it's a mosaic construction time parameter. Of course you can always make a singe tile mosaic. Would be nice to have the same parameter in other coverage stores as well, thought having a way in SLD would be more general and more flexible I guess. In any case, work needs to be done to get there Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users