ST_Distance( ST_Geometry , VARCHAR(128)) method

Returns the smallest distance between the geometry-expression and the specified geometry value.

Syntax

geometry-expression.ST_Distance( ST_Geometry geo2, VARCHAR(128) unit_name)

Parameters

Returns

DOUBLE Returns the smallest distance between the geometry-expression and geo2 in the specified linear units of measure. If either geometry-expression or geo2 is empty, then NULL is returned.

Examples

Standards

SQL/MM (ISO/IEC 13249-3: 2006) 5.1.23