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 orPoint
objects for each vertex of the polygon.
- __init__(*args, **kwargs)#
Overloaded function.
__init__(self: spherely.Polygon, shell: List[Tuple[float, float]]) -> None
__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.