ST_GeomFromWKT - Spectrum_Location_Intelligence_for_Big_Data - 5.2.1

Location Intelligence SDK for Big Data Guide

Product type
Software
Portfolio
Locate
Product family
Spectrum
Product
Spatial Big Data > Location Intelligence SDK for Big Data
Version
5.2.1
Language
English
Product name
Location Intelligence for Big Data
Title
Location Intelligence SDK for Big Data Guide
Copyright
2024
First publish date
2015
Last updated
2024-10-16
Published on
2024-10-16T13:55:01.634374

Description

The ST_FromWKT function returns a WritableGeometry instance from a Well-Known Text (WKT) representation of a geometry.

Syntax

ST_GeomFromWKT(String geometry, [SpatialInfo CRS])

Parameters

Parameter Type Description
geometry String The geometry in WKT format.
CRS String Optional. The coordinate system for the geometry. Default = EPSG:4326

Return Values

Return Type Description
WritableGeometry The geometry from WKT format.

Examples

SELECT ST_FromWKT(t.geometry) FROM table t;
SELECT ST_FromWKT(t.geometry,'epsg:4267') FROM table t;
SELECT ST_FromWKT ('POINT (30 20)', 'epsg:4267');