Ticket #3865 (closed defect: wontfix)

Opened 2 years ago

Last modified 22 months ago

pixmap symbols - AGG does not seem to support the TRANSPARENT keyword in SYMBOL

Reported by: havatv Owned by: tbonfort
Priority: high Milestone: 6.0.1 release
Component: AGG Version: 6.0
Severity: major Keywords: transparent, agg
Cc: havatv, sdlime

Description

AGG (png) does not seem to support the TRANSPARENT parameter of the SYMBOL element.

GD (gif) seems to support it.

This is the symbol that I used (the image is from the Mapserver documentation).

   SYMBOL
     NAME "in_the_star"
     TYPE PIXMAP
     IMAGE "images/star-symbol.png" # size 20x20
     TRANSPARENT 8 # does not work for AGG, works for GD!
   END

Attachments

star-symbol.png Download (229 bytes) - added by havatv 2 years ago.
symboltransparent6.png Download (0.7 KB) - added by havatv 2 years ago.
6.0.0 rendering (agg, png) - note the lack of transparency
symboltransparent6.gif Download (285 bytes) - added by havatv 2 years ago.
6.0.0 - gif (GD) version - OK
symboltransparent5.png Download (317 bytes) - added by havatv 2 years ago.
5.6.6 png (agg) version - OK
symboltransparent5.gif Download (340 bytes) - added by havatv 2 years ago.
5.6.6 gif (gd) version - OK

Change History

Changed 2 years ago by havatv

  • priority changed from normal to high
  • version changed from svn-trunk (development) to 6.0
  • milestone changed from 6.0 release to 6.0.1 release

I can confirm that this bug is still present in 6.0.0. I will attach some files that show the results for mapserver 5 (5.6.6) and mapserver 6 (6.0.0).

Here is a complete map file that can be used to reproduce the bug:

MAP
  SIZE 100 100
  EXTENT 0 0 100 100
  UNITS meters
  IMAGECOLOR 255 255 0
  IMAGETYPE png
  #IMAGETYPE gif

  SYMBOL
    NAME "in_the_star"
    TYPE PIXMAP
    IMAGE "images/star-symbol.png" # size 20x20
    TRANSPARENT 8 # does not work!
  END

  LAYER
    NAME "test"
    SIZEUNITS pixels
    STATUS DEFAULT
    TYPE POINT
    FEATURE
      POINTS
        50 50
      END
    END
    CLASS #
      NAME 'Star'
      STYLE # ------ pixmap ------
        SYMBOL 'in_the_star'
        #SIZE 10
      END # style
    END # class
  END # layer
END # Map file

star-symbol.png is in the documentation "tree", but I attach it anyway.

Changed 2 years ago by havatv

Changed 2 years ago by havatv

6.0.0 rendering (agg, png) - note the lack of transparency

Changed 2 years ago by havatv

6.0.0 - gif (GD) version - OK

Changed 2 years ago by havatv

5.6.6 png (agg) version - OK

Changed 2 years ago by havatv

5.6.6 gif (gd) version - OK

Changed 23 months ago by tbonfort

  • cc sdlime added

Steve, do we really want to support this feature?

Changed 23 months ago by sdlime

Hmmm... We've been trending to setting transparency through image and not the symbol for years. I'd say no and would like to see the keyword in symbols depricated. How big a fix is it? Could fix in 6.0 and mark as depricated and then remove in 6.2...

Steve

Changed 22 months ago by tbonfort

  • status changed from new to closed
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.