RE: [mapserver-users] Transparency of overlapping PNG-symbols
Can you share the batnight.png file? Any difference if you remove "TRANSPARENT 0"? It shouldn't have any effect since transparency is picked up from the pixmap. By chance does this work ok in 6.0? Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl Sent: Friday, April 08, 2011 8:43 AM To: mapserver-users@lists.osgeo.org Cc: Björn Schilberg Subject: [mapserver-users] Transparency of overlapping PNG-symbols Dear list, while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). The Symbols are defined as following: SYMBOL NAME "Batnight" TYPE PIXMAP IMAGE "./images/batnight.png" TRANSPARENT 0 END Used outputformat: OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? I am using the AGG-renderer and MS 5.6.6 though. TIA Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Transparency of overlapping PNG-symbols
Given the artifact, I'd say that you are using the GD renderer. Are you sure it's the AGG one that is being selected when you create that image? -- thomas 2011/4/8 Lime, Steve D (DNR) : > Can you share the batnight.png file? Any difference if you remove > "TRANSPARENT 0"? It shouldn't have any > effect since transparency is picked up from the pixmap. By chance does this > work ok in 6.0? > > Steve > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl > Sent: Friday, April 08, 2011 8:43 AM > To: mapserver-users@lists.osgeo.org > Cc: Björn Schilberg > Subject: [mapserver-users] Transparency of overlapping PNG-symbols > > Dear list, > > while developing an application with PNG-symbols rendered on top of a map I > have encountered a problem if the PNG-symbols overlap each other; artefacts > are present (see attachment). > > The Symbols are defined as following: > SYMBOL > NAME "Batnight" > TYPE PIXMAP > IMAGE "./images/batnight.png" > TRANSPARENT 0 > END > > Used outputformat: > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > > Is there an easy way to let them disappear or is this a (perhaps known) bug > in MapServer? > > I am using the AGG-renderer and MS 5.6.6 though. > > TIA > > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 > Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Transparency of overlapping PNG-symbols [solved]
Hello thomas, thomas bonfort , [20110408 - 16:52:53] > Given the artifact, I'd say that you are using the GD renderer. Are > you sure it's the AGG one that is being selected when you create that > image? At least I was, yes, but after looking at the _right_ mapfile it was missing the AGG-rendering-options. setting the following helps. IMAGETYPE aggpng #8bit png, supports transparency. OUTPUTFORMAT NAME aggpng DRIVER AGG/PNG MIMETYPE "image/png" ## transparency only with RGBA Image Mode ## mapserver had to be compiled -with-experimental-png IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_COLORS=256" FORMATOPTION "QUANTIZE_NEW=ON" TRANSPARENT ON END Best regards Stephan > 2011/4/8 Lime, Steve D (DNR) : > > Can you share the batnight.png file? Any difference if you remove > > "TRANSPARENT 0"? It shouldn't have any effect since transparency is > > picked up from the pixmap. By chance does this work ok in 6.0? > > > > Steve -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Transparency of overlapping PNG-symbols [solved]
Ok, thanks. could you check the same mapfile with GD on mapserver 6.0 to see if the issue still exists? thomas On Mon, Apr 11, 2011 at 09:39, Stephan Holl wrote: > Hello thomas, > > thomas bonfort , [20110408 - 16:52:53] > >> Given the artifact, I'd say that you are using the GD renderer. Are >> you sure it's the AGG one that is being selected when you create that >> image? > > At least I was, yes, but after looking at the _right_ mapfile it was > missing the AGG-rendering-options. > > setting the following helps. > IMAGETYPE aggpng > > #8bit png, supports transparency. > OUTPUTFORMAT > NAME aggpng > DRIVER AGG/PNG > MIMETYPE "image/png" > ## transparency only with RGBA Image Mode > ## mapserver had to be compiled -with-experimental-png > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_COLORS=256" > FORMATOPTION "QUANTIZE_NEW=ON" > TRANSPARENT ON > END > > Best regards > > Stephan > > >> 2011/4/8 Lime, Steve D (DNR) : >> > Can you share the batnight.png file? Any difference if you remove >> > "TRANSPARENT 0"? It shouldn't have any effect since transparency is >> > picked up from the pixmap. By chance does this work ok in 6.0? >> > >> > Steve > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 > Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Transparency of overlapping PNG-symbols [solved]
Hello thomas, thomas bonfort , [20110411 - 09:41:54] > Ok, thanks. > could you check the same mapfile with GD on mapserver 6.0 to see if > the issue still exists? We will do so when we have set up a MS6-Box, which will be the case soon since my collegue björn is going to package MS6 shortly in the future. Best Stephan > > thomas > > On Mon, Apr 11, 2011 at 09:39, Stephan Holl > wrote: > > Hello thomas, > > > > thomas bonfort , [20110408 - 16:52:53] > > > >> Given the artifact, I'd say that you are using the GD renderer. Are > >> you sure it's the AGG one that is being selected when you create > >> that image? > > > > At least I was, yes, but after looking at the _right_ mapfile it was > > missing the AGG-rendering-options. > > > > setting the following helps. > > IMAGETYPE aggpng > > > > #8bit png, supports transparency. > > OUTPUTFORMAT > > NAME aggpng > > DRIVER AGG/PNG > > MIMETYPE "image/png" > > ## transparency only with RGBA Image Mode > > ## mapserver had to be compiled -with-experimental-png > > IMAGEMODE RGBA > > EXTENSION "png" > > FORMATOPTION "QUANTIZE_FORCE=ON" > > FORMATOPTION "QUANTIZE_COLORS=256" > > FORMATOPTION "QUANTIZE_NEW=ON" > > TRANSPARENT ON > > END > > > > Best regards > > > > Stephan > > > > > >> 2011/4/8 Lime, Steve D (DNR) : > >> > Can you share the batnight.png file? Any difference if you remove > >> > "TRANSPARENT 0"? It shouldn't have any effect since transparency > >> > is picked up from the pixmap. By chance does this work ok in 6.0? > >> > > >> > Steve > > > > -- > > Stephan Holl | Tel.: +49 (0)541-33 508 > > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - > > HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. > > Jan-Oliver Wagner > > -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users