ST_Entity

注注:

仅适用于 Oracle 的 ST_Geometry

定义

ST_Entity 返回 ST_Geometry 的空间实体类型。空间实体类型是存储在 ST_Geometry 对象的实体成员字段中的值。

语法

sde.st_entity (g1 sde.st_geometry)

返回类型

数值

示例

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

INSERT INTO SAMPLE_GEOMETRIES (id, geometry) VALUES (
1901,
sde.st_geometry ('point (1 2)', 0)
);

INSERT INTO SAMPLE_GEOMETRIES (id, geometry VALUES (
1902,
sde.st_geometry ('linestring (33 2, 34 3, 35 6)', 0)
);

INSERT INTO SAMPLE_GEOMETRIES (id, geometry) VALUES (
1903,
sde.st_geometry ('polygon ((3 3, 4 6, 5 3, 3 3))', 0)
);

SELECT sde.st_entity (geometry) entity, UPPER (sde.st_geometrytype (geometry))
TYPE
FROM SAMPLE_GEOMETRIES;

    ENTITY        TYPE

    1    ST_POINT
    4    ST_LINESTRING
    8    ST_POLYGON
9/15/2013