[Geoserver-devel] Transparency Issue?

Hi ,

Can anyone tell me if they are experiencing any issues with the transparency in GS-RC1?

It seems that the “White” in a vector layer, still displays data from another layer (for example a raster) that is underneath it, regardless if TRANSPARENT=TRUE or FALSE.

Could this be the default behaviour for GIF and PNG if the polygon does not have a fill associated in the corresponding SLD?

Thanks,

Steve

On Tue, Feb 8, 2011 at 3:13 PM, Steve Way
<Steve.Way@anonymised.com> wrote:

Hi ,

Can anyone tell me if they are experiencing any issues with the transparency
in GS-RC1?

It seems that the “White” in a vector layer, still displays data from
another layer (for example a raster) that is underneath it, regardless if
TRANSPARENT=TRUE or FALSE.

Could this be the default behaviour for GIF and PNG if the polygon does not
have a fill associated in the corresponding SLD?

That sounds odd to me. Can we see the sld?

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

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

Cheers Andrea.

Attached is the SLD.

-----Original Message-----
From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: 08 February 2011 14:35
To: Steve Way
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] Transparency Issue?

On Tue, Feb 8, 2011 at 3:13 PM, Steve Way <Steve.Way@anonymised.com> wrote:

Hi ,

Can anyone tell me if they are experiencing any issues with the
transparency in GS-RC1?

It seems that the "White" in a vector layer, still displays data from
another layer (for example a raster) that is underneath it, regardless
if TRANSPARENT=TRUE or FALSE.

Could this be the default behaviour for GIF and PNG if the polygon
does not have a fill associated in the corresponding SLD?

That sounds odd to me. Can we see the sld?

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

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

DISCLAIMER:

This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech or Mail.Admin@anonymised.com and delete the original message.

(attachments)

Meridian2Areas.sld (4.21 KB)

On Tue, Feb 8, 2011 at 3:46 PM, Steve Way <Steve.Way@anonymised.com.> wrote:

Cheers Andrea.

Attached is the SLD.

Hey there. So I found some time to try and replicate but failed.
Take the following request for example:

http://demo.opengeo.org/geoserver/wms?HEIGHT=330&WIDTH=660&LAYERS=topp%3Anaturalearth%2Ctopp%3Astates&STYLES=%2Cpolygon&SRS=EPSG%3A4326&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-125.68359375,23.466796875,-67.67578125,52.470703125

It has a raster layer and then on top of usual polygon style, which is opaque, and there
is no way to see through the polygons.

I guess it may be something specific to you request, I don’t see anything particular in the SLD
you provided that would make colors translucent.

If you can extract some data for the two layers in shapefiles, provide the two styles as well,
and attach everything to a bug report on jira.codehaus.org, that should allow us to reproduce
the issue.

Just a wild idea though… did you say sometimes ago that you modified GeoServer to render
multiple layers in parallel? In that case I guess you have each layer rendered on a different
BufferedImage, when merging them translucency might be induced by using the wrong
type of AlphaComposite. Just a shot in the dark, might be relevant, might be totally off
the mark.

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