Enable "hatching" with a well-known-mark called 'hatch'

Description

Our organization needs to have "hatching" as a symbolization possiblitiy. It takes the form of many little vertical lines filling a polygon, or (with rotation) many little horizontal lines.

You can also overlay lines rotated at 90 degrees to each other to create a "grid" or "lattice" of little squares/diamonds.

Since it's implemented as a well-known-mark, it's just another java2D GeneralPath, and can be styled just like anything else.

The OGC-standard way to do this would be to create different "hatch" tiles for every single color and thickness of hatch one could ever possibly conceive of, and that seems inefficient.

Since my motivation is Geoserver, the patch is against the 2.1.x renderer, but as soon as geoserver moves to 2.2.x I'll forward-port this patch to the 2.2.x renderer.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:34 PM

CodeHaus Comment From: jeichar@refractions.net - Time: Fri, 7 Apr 2006 20:22:03 -0500
---------------------
I've added it to 2.2.x, Will do 2.1.x now.

codehaus
April 10, 2015, 3:34 PM

CodeHaus Comment From: jeichar@refractions.net - Time: Sat, 8 Apr 2006 10:23:01 -0500
---------------------
patched 2.1.x.

Thaks for the patch

Assignee

Unassigned

Reporter

codehaus

Triage

None

Affects versions

Priority

Lowest
Configure