[Geoserver-devel] [JIRA] (GEOS-7412) Part of Graphic PointSymbolizer gets cropped when legend width/height are defined and smaller then rule graphic size

Ivan Grcic created an issue

GeoServer / BugGEOS-7412

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

Issue Type:

BugBug

Affects Versions:

2.8.1

Assignee:

Unassigned

Attachments:

sld.txt, zoom2_original_size.PNG, zoom2_resized_cropped.png

Components:

WMS

Created:

08/Feb/16 6:09 PM

Environment:

Ubuntu 14.04
JRE 1.7.0_80

Labels:

legend

Priority:

MediumMedium

Reporter:

Ivan Grcic

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.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.1.0-OD-06-005#71002-sha1:1d15c98)

Atlassian logo