Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved. xxxi
7.2.6 SQL routines for obtaining Well-known Text Representation of a geometric object
The SQL routines ST_AsText for obtaining the Well-known Text Representation of a geometric object are specified in SQLMM.
7.2.7 SQL routines for obtaining Well-known Binary Representations of a geometric object
The SQL routines ST_AsBinary for obtaining the Well-known Binary Representation of a geometric object are specified in SQLMM.
7.2.8 SQL routines on type Geometry 7.2.8.1
Supported routines
The SQLMM
ST_Dimension, ST_GeometryType, ST_AsText, ST_AsBinary, ST_SRID, ST_IsEmpty, ST_IsSimple, ST_Boundary
, and
ST_Envelope
routines shall be supported for all Geometry Types. Also included are SQL routines for obtaining the Well-known Binary and Text
Representation of a geometric object and creating values from them. Consistent with the definitions of relations in Part 1, Clause 6.1.2.3, the SQLMM
ST_Equals, ST_Disjoint,
ST_Intersects
, ST_Touches, ST_Crosses, ST_Within, ST_Contains, ST_Overlaps
and
ST_Relate
routines shall be supported to test named spatial relationships between two geometric objects.
The SQLMM
ST_Distance
routines shall be supported to calculate the distance between two geometric objects.
Consistent with the set theoretic operations defined in ISO 19103, and ISO 19107, the SQLMM
ST_Intersection, ST_Difference, ST_Union, ST_SymDifference, ST_Buffer,
and
ST_ConvexHull
routines shall be supported to implement set-theoretic and constructive operations on geometric objects. These operations are defined for all types of Geometry.
7.2.8.2 Declarations from SQLMM informative
CREATE TYPE ST_Geometry AS
ST_PrivateDimension SMALLINT DEFAULT
-1, ST_PrivateCoordinateDimension
SMALLINT DEFAULT 2,
ST_PrivateIs3D SMALLINT DEFAULT
0, ST_PrivateIsMeasured
SMALLINT DEFAULT NOT INSTANTIABLE
NOT FINAL
Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved.
METHOD ST_Dimension RETURNS SMALLINT
LANGUAGE SQL DETERMINISTIC
CONTAINS SQL RETURNS NULL ON NULL INPUT,
METHOD ST_GeometryType RETURNS CHARACTER VARYINGST_MaxTypeNameLength
LANGUAGE SQL DETERMINISTIC
CONTAINS SQL RETURNS NULL ON NULL INPUT,
METHOD ST_AsText RETURNS CHARACTER LARGE OBJECTST_MaxGeometryAsText
LANGUAGE SQL DETERMINISTIC
CONTAINS SQL RETURNS NULL ON NULL INPUT
RETURNS NULL ON NULL INPUT,
METHOD ST_AsBinary RETURNS BINARY LARGE OBJECTST_MaxGeometryAsBinary
LANGUAGE SQL DETERMINISTIC
CONTAINS SQL RETURNS NULL ON NULL INPUT,
METHOD ST_SRID RETURNS INTEGER
LANGUAGE SQL DETERMINISTIC
CONTAINS SQL RETURNS NULL ON NULL INPUT,