ArcGIS Server Banner

ST_Is3d

ST_Is3d

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

NOTE: Spatial type for Oracle only

Definition

ST_Is3d takes a geometry as an input parameter and returns 1 if the given geometry has z-coordinates or 0 if it does not.

Syntax

sde.st_is3d (g1 sde.st_geometry)

Return type

Integer

Example

This example creates a table, is3d_test, and populates it with records. Then, using ST_Is3d, it checks to see if any of the records has a z-coordinate.

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

INSERT INTO is3d_test VALUES (
1902,
sde.st_geometry ('polygon ((40 120, 90 120, 90 150, 40 150, 40 120))', 0)
);

INSERT INTO is3d_test VALUES (
1903,
sde.st_geometry ('multipoint m(10 10 5, 50 10 6, 10 30 8)' , 0)
);

INSERT INTO is3d_test VALUES (
1904,
sde.st_geometry ('linestring z(10 10 166, 20 10 168)', 0)
);

INSERT INTO is3d_test VALUES (
1905,
sde.st_geometry ('point zm(10 10 16 30)', 0)
);


SELECT id, sde.st_is3d (geometry) Is_3D
FROM is3d_test;

        ID      IS_3D

      1902          0
      1903          0
      1904          1
      1905          1

See Also

  • An overview of SQL functions used with ST_Geometry types