GeoScript

Previous topic

Symbolizer

Next topic

Fill

This Page

Shape

class geoscript.style.shape.Shape

Symbolizer for point geometries that consists of a color and size.

>>> Shape('#ff0000', 5)
Shape(color=(255,0,0),size=5,type=circle)

The type argument is a well known name describing the shape type:

>>> shp = Shape(type='triangle')

The default shape is “circle”. Allowable values include “square”, “triangle”, “star”, “cross”, and “x”.