Skip to main content
Returns the total boundary length of the two-dimensional components of a native GEO value. Exterior and interior rings are included. GEOGRAPHY results are meters along great-circle edges. GEOMETRY results use the coordinate units of the input CRS.

Syntax

POLYGON and MULTIPOLYGON contribute their ring lengths. Polygon components inside a GEOMETRYCOLLECTION are summed recursively. Points and lines contribute zero. NULL produces NULL; an EMPTY value produces 0. Malformed WKB, unsupported dimensions or descriptors, and topologically invalid inputs produce a controlled error. Spherical rings use the same smaller-region, winding-independent model described for ST_Area.

Examples

Keywords

ST_PERIMETER,ST,PERIMETER,GEOGRAPHY,GEOMETRY GEOGRAPHY, GEOMETRY, DOUBLE