spherely.Polygon

spherely.Polygon#

class spherely.Polygon#

A geography type representing an area that is enclosed by a linear ring.

A polygon is a two-dimensional feature and has a non-zero area.

Parameters:

shell (list) – A sequence of (lat, lon) tuple coordinates or Point objects for each vertex of the polygon.

__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: spherely.Polygon, shell: List[Tuple[float, float]]) -> None

  2. __init__(self: spherely.Polygon, shell: List[spherely.Point]) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

Attributes

dimensions

Returns the inherent dimensionality of a geometry.

nshape

Returns the number of elements in the collection, or 1 for simple geography objects.