Part of Graphic PointSymbolizer gets cropped when legend width/height are defined and smaller then rule graphic size

Description

When requesting legend graphics with a legend size smaller then graphic size defined in SLD, graphic mark get cropped. It seems as the stroke width is not taken into account during the rescaling process (or maybe some rounding issue somewhere?)

GetLegendGraphics Rule is requested wit following relevant parameters:
&rule=164_5290&LEGEND_OPTIONS=forceLabels%3Aoff&scale=17500&WIDTH=40&HEIGHT=25

In this example Rule size is set to 30px, and requested legend size is 40x25px. Attached are sld snippet and original/resized legend image.

Environment

Ubuntu 14.04
JRE 1.7.0_80

Assignee

Unassigned

Reporter

Ivan Grcic

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure