PostGIS
Name
ST_PointFromText — Makes a point Geometry from WKT with the given SRID. If SRID is not given, it defaults to unknown.
Synopsis
geometry +`*`+ST_PointFromText
*(`text `WKT`
)`;
geometry +`*`+ST_PointFromText
*(`text `WKT
, integer
srid`
)`;
Description
Constructs a PostGIS ST_Geometry point object from the OGC Well-Known text representation. If SRID is not given, it defaults to unknown (currently 0). If geometry is not a WKT point representation, returns null. If completely invalid WKT, then throws an error.
|
|
[.inlinemediaobject] This method implements the OGC Simple Features Implementation Specification for SQL 1.1.
s3.2.6.2 - option SRID is from the conformance suite.
This method implements the SQL/MM specification.
SQL-MM 3: 6.1.8
Examples
SELECT ST_PointFromText('POINT(-71.064544 42.28787)');
SELECT ST_PointFromText('POINT(-71.064544 42.28787)', 4326);