Opened 13 years ago

Closed 13 years ago

#3910 closed defect (fixed)

Missing Outline when using Pixmap Symbols in Version 6.0.0

Reported by: klau Owned by: havatv
Priority: normal Milestone: 6.0.1 release
Component: Renderer API Version: 6.0
Severity: normal Keywords: Outline Pixmap Symbols
Cc:

Description (last modified by tbonfort)

In my php_mapserver environement pixmap symbols are drawn but an outline is missing. For rendering I use agg/png. The problem occurs when using php mapserver 6.0.0 on OpenSUSE 11.2, compiled from source. Using 5.6.6 outlines are drawed correctly.

My map and symbol file look like the following

OUTPUTFORMAT
  NAME aggpng24
  DRIVER AGG/PNG
  MIMETYPE "image/png"
  IMAGEMODE RGBA # transparent background 
  EXTENSION "png"
END
...
LAYER
  NAME "A31"
  TYPE POLYGON
  STATUS ON
  DATA  "shape/31"
  CLASS
    NAME "X"
    STYLE
      COLOR 255 219 170
      OUTLINECOLOR 10 10 10
      SYMBOL "x"
    END
    TEMPLATE " "
  END
END

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

SYMBOL
  NAME 'x'
  TYPE PIXMAP
  IMAGE 'x.png'
END

Change History (4)

comment:1 by tbonfort, 13 years ago

Component: MapScript-PHPRenderer API
Resolution: wontfix
Status: newclosed

There was an undocumented shorthand in previous versions that allowed you to put the outline in the same style block as the symbol.

You should use two different style blocks:

STYLE
  BACKGROUNDCOLOR r g b
  SYMBOL 'pixmap'
END
STYLE
  OUTLINECOLOR r g b
END

comment:2 by klau, 13 years ago

Resolution: wontfix
Status: closedreopened

Thank you very much, it works. But in this case I guess you should update your documentation. In the the section "Cartographical Symbol Construction with MapServer" in paragraph "Polygon fills with symbols of TYPE pixmap" I found examples like

Construction of a horizontally arranged area symbol

CLASS section

CLASS

STYLE

COLOR 255 255 0

END STYLE

SYMBOL "in_the_star" COLOR 0 0 0 OUTLINECOLOR 0 0 0

END

END

SYMBOL definition

SYMBOL

NAME "in_the_star" TYPE PIXMAP IMAGE "stern.png" TRANSPARENT 8

END

According to your answer I guess this doesn't work. Regards

Klaus

comment:3 by tbonfort, 13 years ago

Description: modified (diff)
Owner: changed from aboudreault to havatv
Status: reopenednew

Havard,

was the star example generated with mapserver 6 and that exact style definition?

comment:4 by havatv, 13 years ago

Resolution: fixed
Status: newclosed

Thomas,

The pixmap examples were not updated, and the graphics were not regenerated due to the bug with pixmap symbol transparency reported in #3865.

I have now updated the STYLEs used to produce the graphics in the symbol construction document (r11789).

Note: See TracTickets for help on using tickets.