spherely.create_polygon

Contents

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 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, default False) – 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.