pyinterp.core.geodetic.Point#

class pyinterp.core.geodetic.Point(self, lon: float = 0, lat: float = 0)#

Bases: pybind11_builtins.pybind11_object

Handle a point in a geographic coordinates system in degrees.

Parameters
  • lon – Longitude in degrees.

  • lat – Latitude in degrees.

Attributes

lat

Latitude coordinate in degrees.

lon

Longitude coordinate in degrees.

Public Methods

distance(self, other[, strategy, wgs])

Calculate the distance between the two points.

read_wkt(wkt)

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

to_geojson(self)

Return the point as a GeoJSON type.

wkt(self)

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

Special Methods

__copy__(self)

Implements the shallow copy operation.

__eq__(self, other)

Overrides the default behavior of the == operator.

__getstate__(self)

__ne__(self, other)

Overrides the default behavior of the != operator.

__repr__(self)

Called by the repr() built-in function to compute the string representation of a point.

__setstate__(self, arg0)