ST_Point - 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_Point function constructs a point geometry from the provided X and Y, and an optional CRS.

Syntax

ST_Point(String|Number X, String|Number Y, [SpatialInfo CRS])

Parameters

Parameter Type Description
X String or Number The X ordinate.
Y String or Number The Y ordinate.
CRS String Optional. The coordinate system for the geometry. Default = EPSG:4326

Return Values

Return Type Description
WritableGeometry The geometry of the specified X/Y coordinates. If any of the argument values are invalid, then an empty geometry will be returned in the output.

Examples

SELECT ST_Point(-73.750333 , 42.736103, 'epsg:4326');
SELECT ST_Point('-73.750333' , '42.736103', 'epsg:4326');
SELECT ST_Point(-73.750333 , 42.736103);
SELECT ST_Point('-73.750333' , 42.736103);
SELECT ST_Point(p.x, p.y, p.crs) FROM points p;