[udig-devel] Transparency support WMS Renderer with image/png8 format

Frank Gasdorf fgdrf at users.sourceforge.net
Wed May 12 07:55:49 PDT 2010


Right. I moved image/png to the top of the list and it works for me.
Otherwise with the attached patch I changed the renderer and it works with
the default order too.

I created an issue : http://jira.codehaus.org/browse/UDIG-1650

Frank

2010/5/12 Jody Garnett <jody.garnett at gmail.com>

> Create a bug - and attach a patch if you can :-)
>
> Can you confirm, by changing the requested format order in the WMS
> preference page; that switching to a different format is helping?
>
> Jody
>
> On 12/05/2010, at 7:29 PM, Frank Gasdorf wrote:
>
> Hello uDig'ers
>
> I just tested a bit udig 1.2 RC2 against a geoserver 2.0.x server and was
> wondering that requested layers returned images with a default background
> color. The request has "TRANSPARENCY=FALSE" included and therefore I looked
> into the sources.
>
> In the BasicWMSRenderer2<http://svn.refractions.net/udig/udig/trunk/plugins/net.refractions.udig.render.wms.basic/src/net/refractions/udig/render/internal/wms/basic/BasicWMSRenderer2.java>class I found a formatSupportsTransparency function that would return false
> if the image format is image/png8. In addition the udig default image type
> order has this format on top of others, means if the server supports
> image/png8 udig will request this format.
>
> In my opinion it looks like a bug, png8 has transparency support [1]!
> Should I create an issue in jira and attache a patch there. Could somebody
> confirm that? The formatSupportsTransparency function should return true if
> the format is image/png8 !
>
> In regards,
>
> Frank
>
> [1] http://en.wikipedia.org/wiki/Portable_Network_Graphics
> <BasicWMSRenderer2.patch>_______________________________________________
>
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.refractions.net/pipermail/udig-devel/attachments/20100512/d5ea1b5d/attachment-0001.html>


More information about the udig-devel mailing list