pyinterp.core.geodetic.Point

class pyinterp.core.geodetic.Point

Bases: pybind11_builtins.pybind11_object

Handle a point in a geographic coordinates system in degrees.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pyinterp.core.geodetic.Point) -> None

  2. __init__(self: pyinterp.core.geodetic.Point, lon: float, lat: float) -> None

Build a new point with the coordinates provided.

Parameters
  • lon (float) – Longitude in degrees.

  • lat (float) – Latitude in degrees.

Methods

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

Calculate the distance between the two points.

Point.read_wkt(wkt)

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

Point.wkt(self)

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

Point.__eq__(self, other)

Overrides the default behavior of the == operator.

Point.__getstate__(self)

Point.__hash__

Point.__ne__(self, other)

Overrides the default behavior of the != operator.

Point.__repr__(self)

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

Point.__setstate__(self, arg0)

Attributes

Point.lat

Latitude coordinate in degrees.

Point.lon

Longitude coordinate in degrees.