Skip to main content
Generate the GeoJSON style representation of a geometry column. SQL reference: ST_AsGeoJSON

Signature

Parameters

ColumnOrName
required
Geometry column to generate GeoJSON for.
Optional[Union[ColumnOrName, str]]
default:"None"
GeoJSON type to return: “Simple” (default) for a bare geometry, “Feature” to wrap it in a Feature, or “FeatureCollection” to wrap that Feature in a FeatureCollection.

Returns

Column
GeoJSON representation of geometry as a string column.