Définition
ST_PointFromText prend une représentation textuelle connue de type point et un ID de référence spatiale, puis renvoie un point.
Syntaxe
Oracle
sde.st_pointfromtext (wkt varchar2, srid integer)
SQLite
st_pointfromtext (wkt text, srid int32)
Type de retour
ST_Point
Exemple
La table point_test est créée avec la seule colonne pt1 de ST_Point.
La fonction ST_PointFromText convertit les coordonnées textuelles du point en format de point avant que l'instruction INSERT n'insère le point dans la colonne pt1.
Oracle
CREATE TABLE point_test (pt1 sde.st_geometry);
INSERT INTO POINT_TEST VALUES (
 sde.st_pointfromtext ('point (10.01 20.03)', 4326)
);
SQLite
CREATE TABLE pt_test (id integer);
SELECT AddGeometryColumn(
 NULL,
 'pt_test',
 'pt1',
 4326,
 'point',
 'xy',
 'null'
);
INSERT INTO pt_test VALUES (
 1,
 st_pointfromtext ('point (10.01 20.03)', 4326)
);