ST_MPointFromText

NotaNota:

Solo Oracle y SQLite

Definición

ST_MPointFromText toma una representación de texto conocido (WKT) de tipo ST_MultiPoint y un Id. de referencia espacial y crea un ST_Multipoint.

Sintaxis

Oracle

sde.st_mpointfromtext (wkt clob, srid integer)

SQLite

st_mpointfromtext (wkt text, srid int32)

Tipo de devolución

ST_MultiPoint

Ejemplo

La tabla multipoint_test se crea con la única columna ST_MultiPoint mpt1.

La declaración INSERT inserta un multipunto en la columna mpt1 utilizando la función ST_MpointFromText.

Oracle

CREATE TABLE multipoint_test (mpt1 sde.st_geometry);
INSERT INTO MULTIPOINT_TEST VALUES (
 sde.st_mpointfromtext ('multipoint (10.01 20.03, 10.52 40.11, 30.29 41.56, 31.78 10.74)', 4326));

SQLite

CREATE TABLE multipoint_test (id integer);

SELECT AddGeometryColumn (
 NULL,
 'multipoint_test',
 'pt1',
 4326,
 'multipoint',
 'xy',
 'null'
);
INSERT INTO MULTIPOINT_TEST VALUES (
 1,
 st_mpointfromtext ('multipoint (10.01 20.03, 10.52 40.11, 30.29 41.56, 31.78 10.74)', 4326));

Temas relacionados

5/10/2014