ST_MultiPolygon

Definition

ST_MultiPolygon constructs a multipolygon feature from a well-known text representation.

Syntax

Oracle

PostgreSQL

Oracle

sde.st_multipolygon (wkt clob, srid integer)

PostgreSQL

sde.st_multipolygon (wkt clob, srid integer)
sde.st_multipolygon (esri_shape bytea, srid integer)

SQLite

st_multipolygon (wkt text, srid int32)

Return type

ST_MultiPolygon

Example

A table, mpoly_test, is created, and one multipolygon is inserted to it using the ST_MultiPolygon function.

Oracle

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

INSERT INTO MPOLY_TEST VALUES (
 1110,
 sde.st_multipolygon ('multipolygon (((3 3, 4 6, 5 3, 3 3),(8 24, 9 25, 1 28, 8 24), (13 33, 7 36, 1 40, 10 43, 13 33)))', 4326)
);

PostgreSQL

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

INSERT INTO mpoly_test VALUES (
 1110,
 sde.st_multipolygon ('multipolygon (((3 3, 4 6, 5 3, 3 3), (8 24, 9 25, 1 28, 8 24), (13 33, 7 36, 1 40, 10 43, 13 33)))', 4326)
);

SQLite

CREATE TABLE mpoly_test (
 id integer
);

SELECT AddGeometryColumn(
 NULL,
 'mpoly_test',
 'geometry',
 4326,
 'multipolygon',
 'xy',
 'null'
);

INSERT INTO mpoly_test VALUES (
 1110,
 st_multipolygon ('multipolygon (((3 3, 4 6, 5 3, 3 3), (8 24, 9 25, 1 28, 8 24), (13 33, 7 36, 1 40, 10 43, 13 33)))', 4326)
);

Related Topics

6/19/2015