Skip to content
πŸŽ‰ Apache Sedona 1.9.1 is out now! πŸ—ΊοΈ Geography SQL functions, Box2D & Box3D types, raster Python UDFs & more. Read the release notes β†’

ST_GeomFromText

Introduction: Construct a Geometry from WKT. Alias of ST_GeomFromWKT

Format: ST_GeomFromText (Wkt: String)

ST_GeomFromText (Wkt: String, srid: Integer)

Return type: Geometry

Since: v1.2.1

Example:

SELECT ST_GeomFromText('POINT(40.7128 -74.0060)')

Output:

POINT(40.7128 -74.006)