toGeometry

This section contains reference documentation for the toGeometry function.

Converts a spherical geographical object to a Geometry object.

Signature

toGeometry(geographyObject)

Usage Examples

select toGeometry(
    STPOINT(-122, 37, 1)
) AS value
from ignoreMe 

You can create geographical objects using the STPOINT and ST_GeogFromText functions.

Last updated