ST_BUFFER

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns a GEOMETRY object that represents a MultiPolygon containing the points within a specified distance of the input GEOMETRY object. The returned object effectively represents a “buffer” around the input object. You can also “shrink” the input object by specifying a negative value for the distance.

Syntax

ST_BUFFER( <geometry_expression> , <distance> )

Parameters

NameRequiredDescription
geometry_expressionrequiredThe argument must be an expression of type GEOMETRY.
distancerequiredThe distance from the GEOMETRY object. To “shrink” the object, you can specify a negative value for the distance. The units depend on the spatial reference system identifier (SRID) of the GEOMETRY object. For example, EPSG:4326 units are degrees, while EPSG:25833 units are meters.

Returns

Returns a GEOMETRY object.

Usage notes