ST_PointFromWKB

Syntax

ST_PointFromWKB(wkb[,srid])
PointFromWKB(wkb[,srid])

Description

Constructs a POINT value using its WKB representation and SRID.

ST_PointFromWKB() and PointFromWKB() are synonyms.

Examples

SET @g = ST_AsBinary(ST_PointFromText('POINT(0 4)'));

SELECT ST_AsText(ST_PointFromWKB(@g)) AS p;
+------------+
| p          |
+------------+
| POINT(0 4) |
+------------+

This page is licensed: GPLv2, originally from fill_help_tables.sql

Last updated

Was this helpful?