Legend drawer does not take line cap, line dash and line join into account while drawing.

Description

The class org.geotools.legend.Drawer does not draw the following line properties if they are defined:

  • line cap

  • line join

  • line dash

In order to fix this, the following method should be altered:
private void paint(BufferedImage bi, SimpleFeature feature, LiteShape shape, Symbolizer symb);

Change this part of the method:

into this:

Environment

Java 1.8.0 u111
System: Windows 7 Proffessional

Assignee

Morgan Thompson

Reporter

mroguski@poczta.fm

Triage

Components

Affects versions

Priority

Medium
Configure