spherely.create_polygon#
- spherely.create_polygon(shell=None, holes=None, oriented=False)#
Create a POLYGON geography.
- Parameters:
shell (sequence, optional) – A sequence of (longitude, latitude) coordinates (in degrees) or POINT
Geography
objects representing the vertices of the polygon.holes (sequence, optional) – A list of sequences of objects where each sequence satisfies the same requirements as the
shell
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.
- Returns:
polygon (
Geography
) – A new POLYGON geography object.