measurements
This module contains functions that compute measurements of distance, area and angles. There are also functions to compute geometry values determined by measurements.
ST_ANGLE
Description
Finds the angle formed by two adjacent segments defined by 3 points. The result will be the (positive clockwise) angle with origin on the startPoint-midPoint segment, or its explementary angle if required.
startPoint
:GEOGRAPHY
start Point Coordinates.midPoint
:GEOGRAPHY
mid Point Coordinates.endPoint
:GEOGRAPHY
end Point Coordinates.mercator
:BOOLEAN
|NULL
if calculations should be performed over Mercator or WGS84 projection. IfNULL
the default valuefalse
is used.
Return type
FLOAT64
Example
ST_MINKOWSKIDISTANCE
Description
Calculate the Minkowski p-norm distance between two features.
geog
:ARRAY<GEOGRAPHY>
featureCollection.p
:FLOAT64
minkowski p-norm distance parameter. 1: Manhattan distance. 2: Euclidean distance. 1 =< p <= infinity. IfNULL
the default value2
is used.
Return type
ARRAY<STRING>
Example
Last updated