pyinterp.core.geodetic.Point¶
- class pyinterp.core.geodetic.Point(self, lon: float = 0, lat: float = 0)¶
Bases:
pybind11_objectCreate a point in a geographic coordinate system.
- Parameters:
lon – Longitude in degrees.
lat – Latitude in degrees.
Attributes
Public Methods
azimuth(self, other[, wgs])Calculate the azimuth between the two points.
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)Get the OGC Well-Known Text (WKT) representation of this instance.
Special Methods
__copy__(self)Implement the shallow copy operation.
__eq__(self, other)Override the default behavior of the
==operator.__getstate__(self, /)__ne__(self, other)Override the default behavior of the
!=operator.__repr__(self)Return the string representation of this point.
__setstate__(self, arg0)