Structs§
- Lora
Point - A 2D or 3D point, either Cartesian or WGS-84 Geographic.
Enums§
- Point
KeyFamily - Which coordinate family the caller used.
Constants§
- CRS_
CARTESIAN - Canonical CRS name strings as understood by
point(). - CRS_
CARTESIAN_ 3D - CRS_
WGS84_ 2D - CRS_
WGS84_ 3D - SRID_
CARTESIAN - SRID_
CARTESIAN_ 3D - SRID_
WGS84 - SRID_
WGS84_ 3D
Functions§
- cartesian_
distance - Euclidean distance between two Cartesian points (2D or 3D).
- haversine_
distance - Haversine distance in metres between two WGS-84 geographic points.
- point_
distance - Distance between two points — dispatches to Euclidean or Haversine
depending on SRID. Returns
Noneif the SRIDs don’t match, which also covers the 2D-vs-3D mismatch since the dimension is baked into the SRID (7203 vs 9157, 4326 vs 4979). - resolve_
srid - Resolve a final SRID from the optional user-provided
crs,srid, plus the detected key family and dimensionality. - srid_
from_ crs_ name - Normalise a CRS name string to its canonical SRID.
- srid_
is_ 3d - srid_
is_ geographic - srid_
is_ supported - Recognise a bare SRID as one of the four supported values.