Module s2.s2polygon

An S2Polygon is an S2Region object that represents a polygon.

Classes

NameDescription
S2Polygon An S2Polygon is an S2Region object that represents a polygon. A polygon is defined by zero or more loops; recall that the interior of a loop is defined to be its left-hand side (see S2Loop). There are two different conventions for creating an S2Polygon:

Manifest constants

NameTypeDescription
S2POLYGON_LAZY_INDEXING Build the S2ShapeIndex only when it is first needed. This can save significant amounts of memory and time when geometry is constructed but never queried, for example when converting from one format to another.