定义
ST_MPointFromText 采用 ST_MultiPoint 类型的熟知文本 (WKT) 表示和空间参考 ID,并创建 ST_Multipoint。
语法
Oracle
sde.st_mpointfromtext (wkt clob, srid integer)
SQLite
st_mpointfromtext (wkt text, srid int32)
返回类型
ST_MultiPoint
示例
使用单个 ST_MultiPoint mpt1 列创建 multipoint_test 表。
INSERT 语句使用 ST_MpointFromText 函数将多点插入到 mpt1 列中。
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));