ST_AsGeoJSON(VARCHAR(128)) method

Returns a string representing a geometry in JSON format.

Syntax

geometry-expression.ST_AsGeoJSON(VARCHAR(128) format)

Parameters

Returns

LONG VARCHAR Returns the GeoJSON representation of the geometry-expression.

Examples

Standards

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