pyinterp.geodetic.Polygon

class pyinterp.geodetic.Polygon(outer: List[pyinterp.geodetic.Point], inners: Optional[List[List[pyinterp.geodetic.Point]]] = None)[source]

Bases: pyinterp.core.geodetic.Polygon

The polygon contains an outer ring and zero or more inner rings.

__init__(outer: List[pyinterp.geodetic.Point], inners: Optional[List[List[pyinterp.geodetic.Point]]] = None) None[source]

Constructor filling the polygon.

Parameters
  • outer (list) – outer ring.

  • inners (list, optional) – list of inner rings.

Raises

Methods

Polygon.area(self[, wgs])

Calculates the area.

Polygon.covered_by(*args, **kwargs)

Overloaded function.

Polygon.distance(*args, **kwargs)

Overloaded function.

Polygon.envelope(self)

Calculates the envelope of this polygon.

Polygon.read_wkt(wkt)

Parses OGC Well-Known Text (WKT) into a polygon.

Polygon.wkt(self)

Gets the OGC Well-Known Text (WKT) representation of this instance.