Expand description
§Geometry operations – spatial computations on geographic geometries
Provides core spatial analysis functions that operate on the engine’s
Geometry / GeoCoord types:
- Bounding box –
geometry_bbox,Geometry::bbox - Centroid –
geometry_centroid,Geometry::centroid - Area –
polygon_area,ring_area,Geometry::area - Length –
linestring_length,Geometry::length - Bearing –
bearing,initial_bearing - Interpolation –
interpolate_great_circle
All distance/area calculations use the Haversine formula on the WGS-84 sphere (radius 6,378,137 m) for a good balance of speed and accuracy.
Functions§
- bearing
- Initial bearing (forward azimuth) from
atobin degrees (0–360). - geometry_
bbox - Compute the geographic bounding box of a geometry.
- geometry_
centroid - Centroid of a geometry.
- initial_
bearing - Alias for
bearing– initial (forward) azimuth in degrees. - interpolate_
great_ circle - Interpolate a point along the great-circle path between
fromandto. - linestring_
length - Total length of a linestring in meters (Haversine).
- polygon_
area - Area of a polygon (exterior minus holes) in square meters.
- ring_
area - Signed area of a ring on a sphere using the Haversine-based excess formula.