Ticket #755 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

[OGR] StyleItem Auto always set the Pen outline color

Reported by: jlacroix Owned by: mapserverbugs
Priority: high Milestone:
Component: OGR Support Version: unspecified
Severity: normal Keywords:
Cc:

Description

The StyleItem "Auto" function always set the outlinecolor of the pen style. In
general this does not cause any problem, but in case of line layer with TrueType
font symbol of size 1, MapServer draw the character with another pixel of
outline. This cause the symbol to be unreadable.

To fix this, we should check the layer type. Then, if it's a line layer, do not
set the outline color.

Change History

Changed 9 years ago by jlacroix

  • status changed from new to closed
  • resolution set to fixed
Now the outline color is only set if the layer type is polygon.

Fix in mapogr.cpp (MapServer 4.3 cvs):
2058c2058,2062

<                   c->styles[0].outlinecolor = c->styles[0].color = oPenColor;
---
>                   if(layer->type == MS_LAYER_POLYGON)
>                       c->styles[0].outlinecolor = c->styles[0].color =
>                           oPenColor;
>                   else
>                       c->styles[0].color = oPenColor;

Marking as FIXED
Note: See TracTickets for help on using tickets.