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 
value

00c05e8000000000004042800000000000

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