pyinterp.geodetic.Box#

class pyinterp.geodetic.Box(min_corner: Optional[pyinterp.geodetic.Point] = None, max_corner: Optional[pyinterp.geodetic.Point] = None)[source]#

Bases: pyinterp.core.geodetic.Box

Defines a box made of two describing points in a spherical coordinates system in degrees.

Parameters
  • min_corner – the minimum corner point (lower left) of the box.

  • max_corner – the maximum corner point (upper right) of the box.

Attributes

max_corner

The maximal corner (upper right) of the box.

min_corner

The minimal corner (lower left) of the box.

Inherited Methods

area(self[, wgs])

Calculates the area.

as_polygon(self)

Returns the box as a polygon.

centroid(self)

Computes the centroid of the box.

covered_by(*args, **kwargs)

Overloaded function.

distance(*args, **kwargs)

Overloaded function.

from_geojson(array)

Creates a box from a GeoJSON coordinates array.

read_wkt(wkt)

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

to_geojson(self)

Return the box as a GeoJSON type.

whole_earth()

Returns the box covering the whole earth.

wkt(self)

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