- class geoscript.style.hatch.Hatch¶
Symbolizer that repeats a pattern. A hatch can be applied to linear and area geometries.
A hatch is composed of a well known name that describes the pattern, and a Stroke that specifies how the pattern is stroked.>>> from geoscript.style import Stroke >>> Hatch('slash', Stroke('#333333')) Hatch(name=slash,stroke=Stroke(color=(51,51,51),width=1),size=8)
A hatch also accepts a size argument. When applied to a linear geometry the size specifies both the length of the hatch and the distance between repeated instances of it. When applied to a polygon the size specifies the dimensions of the square tile in which the pattern is repeated.