mapserver/mapserver — pull request #4105 by tbonfort (2013-04-04 10:18:40+00:00)
Title: Polygon legend problem

**Reporter: zanollim**
**Date: 2011/12/02 - 10:26**
**Trac URL:** http://trac.osgeo.org/mapserver/ticket/4105
If I define my polygon layer as LINE as follows:

```
[...]
TYPE LINE
STYLE
WIDTH 4
LINECAP round
OUTLINECOLOR 0 0 0
PATTERN 0.1 6 END
END
[...]
```

the legend icon obtained through cgi is correct (see line_legend.png)

If I define the same layer as POLYGON as follows:

```
[...]
TYPE POLYGON
STYLE
COLOR 255 255 255
END
STYLE
WIDTH 4
LINECAP round
OUTLINECOLOR 0 0 0
PATTERN 0.1 6 END
END
[...]
```

the legend icon is wrong, e.g. points are cut in the middle (see polygon_legend.png)