ArcGIS Server Banner

ST_MultiPoint

ST_MultiPoint

Release 9.3 E-mail This TopicPrintable VersionGive Us feedback
Note: This topic was updated for 9.3.1.

Definition

ST_MultiPoint constructs a multipoint feature from a well-known text representation.

Syntax

Oracle

sde.st_multipoint (wkt clob, srid integer)

PostgreSQL

st_multipoint (wkt, srid integer)
st_multipoint (esri_shape bytea, srid integer)

Return type

ST_MultiPoint

Example

Oracle

CREATE TABLE mpoint_test (id integer, geometry sde.st_geometry);

INSERT INTO mpoint_test VALUES (
1110,
sde.st_multipoint ('multipoint (1 2, 3 4, 5 6)', 0)
);

SELECT id, sde.st_astext (geometry) MULTIPOINT
FROM mpoint_test
WHERE id = 1110; 

    ID      MULTIPOINT

  1110      MULTIPOINT  (1.00000000 2.00000000, 3.00000000 4.00000000,   
              5.00000000 6.0000000)

PostgreSQL

CREATE TABLE mpoint_test (id integer, geometry st_geometry);

INSERT INTO mpoint_test VALUES (
1110,
st_multipoint ('multipoint (1 2, 3 4, 5 6)', 0)
);

SELECT id, st_astext (geometry) AS MULTIPOINT
FROM mpoint_test
WHERE id = 1110; 

    id      multipoint

  1110      MULTIPOINT  (1 2, 3 4, 5 6)

See Also

  • An overview of SQL functions used with ST_Geometry types