spherely.create_polygon#
- spherely.create_polygon(shell: Sequence | None = None, holes: Sequence | None = None) Geography #
Create a POLYGON geography.
- Parameters:
shell (
sequence
, optional) – A sequence of (longitude, latitude) coordinates (in degrees) or POINTGeography
objects representing the vertices of the polygon.holes (
sequence
, optional) – A list of sequences of objects where each sequence satisfies the same requirements as theshell
argument.oriented (
bool
, defaultFalse
) – Set to True if polygon ring directions are known to be correct (i.e., shell ring vertices are defined counter clockwise and hole ring vertices are defined clockwise). By default (False), it will return the polygon with the smaller area.