pyinterp.geodetic.Box¶
- class pyinterp.geodetic.Box(min_corner: Point | None = None, max_corner: Point | None = None)[source]¶
Bases:
BoxDefines 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
The maximal corner (upper right) of the box.
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.
Returns the box covering the whole earth.
wkt(self)Gets the OGC Well-Known Text (WKT) representation of this instance.