ISO/IEC 13249-3:2003
(Main)Information technology — Database languages — SQL multimedia and application packages — Part 3: Spatial
Information technology — Database languages — SQL multimedia and application packages — Part 3: Spatial
ISO/IEC 13249-3:2003: introduces the Spatial part of ISO/IEC 13249 (all parts); gives the references necessary for ISO/IEC 13249-3:2003; defines notations and conventions specific to ISO/IEC 13249-3:2003; defines concepts specific to ISO/IEC 13249-3:2003; defines spatial user-defined types and their associated routines. The spatial user-defined types defined in ISO/IEC 13249-3:2003 adhere to the following. A spatial user-defined type is generic to spatial data handling. It addresses the need to store, manage and retrieve information based on aspects of spatial data such as geometry, location and topology. A spatial user-defined type does not redefine the database language SQL directly or in combination with another spatial data type. Implementations of ISO/IEC 13249-3:2003 may exist in environments that also support geographic information, decision support, data mining and data warehousing systems. Application areas addressed by implementations of ISO/IEC 13249-3:2003 include, but are not restricted to, automated mapping, desktop mapping, facilities management, geoengineering, graphics, multimedia and resource management applications.
Technologies de l'information — Langages de bases de données — Multimédia SQL et paquetages d'application — Partie 3: Spatial
General Information
Relations
Standards Content (Sample)
INTERNATIONAL ISO/IEC
STANDARD 13249-3
Second edition
2003-10-15
Information technology — Database
languages — SQL multimedia and
application packages —
Part 3:
Spatial
Technologies de l'information — Langages de bases de données —
Multimédia SQL et paquetages d'application —
Partie 3: Spatial
Reference number
ISO/IEC 13249-3:2003(E)
©
ISO/IEC 2003
---------------------- Page: 1 ----------------------
ISO/IEC 13249-3:2003(E)
PDF disclaimer
This PDF file may contain embedded typefaces. In accordance with Adobe's licensing policy, this file may be printed or viewed but
shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In
downloading this file, parties accept therein the responsibility of not infringing Adobe's licensing policy. The ISO Central Secretariat
accepts no liability in this area.
Adobe is a trademark of Adobe Systems Incorporated.
Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation
parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In
the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below.
© ISO/IEC 2003
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means,
electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or
ISO's member body in the country of the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland
ii © ISO/IEC 2003 — All rights reserved
---------------------- Page: 2 ----------------------
ISO/IEC 13249-3:2003(E)
Contents Page
Foreword. ix
Introduction . x
1 Scope. 1
2 Normative references . 3
2.1 ISO/IEC JTC 1 standards. 3
2.2 ISO standards. 3
2.3 IEC standards . 3
2.4 Other international standards. 3
3 Terms and definitions, notations and conventions.5
3.1 Terms and definitions. 5
3.1.1 Terms and definitions provided in ISO/IEC 13249-1:2002.5
3.1.2 Terms and definitions provided in this part of ISO/IEC 13249. 5
3.1.3 Terms and definitions taken from ISO/IEC 9075 (all parts). 8
3.1.4 Terms and definitions taken from ISO 19107:2003. 9
3.1.5 Terms and definitions taken from ISO 19111:2003. 9
3.2 Notations. 10
3.2.1 Notations provided in ISO/IEC 13249-1:2002. 10
3.2.2 Notations provided in this part of ISO/IEC 13249. 10
3.3 Conventions. 10
4 Concepts. 11
4.1 Geometry Types. 11
4.1.1 ST_Geometry. 11
4.1.2 Spatial Relationships using ST_Geometry. 13
4.1.3 ST_Point. 17
4.1.4 ST_Curve. 17
4.1.5 ST_LineString. 18
4.1.6 ST_CircularString. 18
4.1.7 ST_CompoundCurve. 19
4.1.8 ST_Surface. 20
4.1.9 ST_CurvePolygon . 20
4.1.10 ST_Polygon. 20
4.1.11 ST_GeomCollection. 21
4.1.12 ST_MultiPoint. 22
4.1.13 ST_MultiCurve. 22
4.1.14 ST_MultiLineString . 22
4.1.15 ST_MultiSurface. 23
4.1.16 ST_MultiPolygon. 23
4.2 Spatial Reference System Type. 25
4.2.1 ST_SpatialRefSys. 25
4.3 Angle and Direction Types. 26
4.3.1 ST_Angle. 26
4.3.2 ST_Direction. 27
4.4 Support Routines. 29
4.4.1 ST_Geometry ARRAY Support Routines. 29
4.5 Tables with columns using geometry types . 30
4.6 The Spatial Information Schema . 31
5 Geometry Types. 33
5.1 ST_Geometry Type and Routines .33
5.1.1 ST_Geometry Type . 33
5.1.2 ST_Dimension Method . 42
© ISO/IEC 2003 - All rights reserved Contents iii
---------------------- Page: 3 ----------------------
ISO/IEC 13249-3:2003(E)
5.1.3 ST_CoordDim Method.43
5.1.4 ST_GeometryType Method.44
5.1.5 ST_SRID Methods .46
5.1.6 ST_Transform Method.47
5.1.7 ST_IsEmpty Method.48
5.1.8 ST_IsSimple Method .49
5.1.9 ST_IsValid Method.50
5.1.10 ST_Boundary Method.51
5.1.11 ST_Envelope Method.52
5.1.12 ST_ConvexHull Method.53
5.1.13 ST_Buffer Methods.54
5.1.14 ST_Intersection Method.56
5.1.15 ST_Union Method.57
5.1.16 ST_Difference Method.58
5.1.17 ST_SymDifference Method.59
5.1.18 Return Types from ST_Intersection, ST_Union, ST_Difference, and ST_SymDifference .60
5.1.19 ST_Distance Methods.63
5.1.20 ST_Equals Method.65
5.1.21 ST_Relate Method.66
5.1.22 ST_Disjoint Method.69
5.1.23 ST_Intersects Method.70
5.1.24 ST_Touches Method.71
5.1.25 ST_Crosses Method.72
5.1.26 ST_Within Method.73
5.1.27 ST_Contains Method.74
5.1.28 ST_Overlaps Method.75
5.1.29 Empty Cast.76
5.1.30 ST_WKTToSQL Method.83
5.1.31 ST_AsText Method.84
5.1.32 ST_WKBToSQL Method.85
5.1.33 ST_AsBinary Method.86
5.1.34 ST_GMLToSQL Method .87
5.1.35 ST_AsGML Method.89
5.1.36 ST_GeomFromText Functions.90
5.1.37 ST_GeomFromWKB Functions.92
5.1.38 ST_GeomFromGML Functions.93
5.1.39 ST_Geometry Ordering Definition.95
5.1.40 SQL Transform Functions.96
5.1.41 .97
5.1.42 .105
6 Point Types.113
6.1 ST_Point Type and Routines .113
6.1.1 ST_Point Type.113
6.1.2 ST_Point Methods.116
6.1.3 ST_X Methods.119
6.1.4 ST_Y Methods.120
6.1.5 ST_ExplicitPoint Method.121
6.1.6 ST_PointFromText Functions.122
6.1.7 ST_PointFromWKB Functions.123
6.1.8 ST_PointFromGML Functions.124
7 Curve Types.125
7.1 ST_Curve Type and Routines .125
7.1.1 ST_Curve Type .125
7.1.2 ST_Length Methods.127
7.1.3 ST_StartPoint Method.129
7.1.4 ST_EndPoint Method.130
7.1.5 ST_IsClosed Method.131
7.1.6 ST_IsRing Method.132
7.1.7 ST_CurveToLine Method.133
iv Contents © ISO/IEC 2003 - All rights reserved
---------------------- Page: 4 ----------------------
ISO/IEC 13249-3:2003(E)
7.2 ST_LineString Type and Routines . 134
7.2.1 ST_LineString Type . 134
7.2.2 ST_LineString Methods. 137
7.2.3 ST_Points Methods. 140
7.2.4 ST_NumPoints Method. 142
7.2.5 ST_PointN Method . 143
7.2.6 ST_StartPoint Method. 144
7.2.7 ST_EndPoint Method. 145
7.2.8 ST_LineFromText Functions. 146
7.2.9 ST_LineFromWKB Functions. 147
7.2.10 ST_LineFromGML Functions. 148
7.3 ST_CircularString Type and Routines . 149
7.3.1 ST_CircularString Type. 149
7.3.2 ST_CircularString Methods. 153
7.3.3 ST_Points Methods. 156
7.3.4 ST_NumPoints Method. 158
7.3.5 ST_PointN Method . 159
7.3.6 ST_MidPointRep Method. 160
7.3.7 ST_StartPoint Method. 161
7.3.8 ST_EndPoint Method. 162
7.3.9 ST_CircularFromTxt Functions. 163
7.3.10 ST_CircularFromWKB Functions. 164
7.4 ST_CompoundCurve Type and Routines. 165
7.4.1 ST_CompoundCurve Type. 165
7.4.2 ST_CompoundCurve Methods.169
7.4.3 ST_Curves Methods. 172
7.4.4 ST_NumCurves Method. 174
7.4.5 ST_CurveN Method. 175
7.4.6 ST_StartPoint Method. 176
7.4.7 ST_EndPoint Method. 177
7.4.8 ST_CompoundFromTxt Functions.178
7.4.9 ST_CompoundFromWKB Functions.179
8 Surface Types. 181
8.1 ST_Surface Type and Routines . 181
8.1.1 ST_Surface Type. 181
8.1.2 ST_Area Methods. 183
8.1.3 ST_Perimeter Methods . 185
8.1.4 ST_Centroid Method. 187
8.1.5 ST_PointOnSurface Method. 188
8.2 ST_CurvePolygon Type and Routines. 189
8.2.1 ST_CurvePolygon Type. 189
8.2.2 ST_CurvePolygon Methods . 193
8.2.3 ST_ExteriorRing Methods. 197
8.2.4 ST_InteriorRings Methods. 199
8.2.5 ST_NumInteriorRing Method. 202
8.2.6 ST_InteriorRingN Method. 203
8.2.7 ST_CurvePolyToPoly Method. 204
8.2.8 ST_CPolyFromText Functions. 205
8.2.9 ST_CPolyFromWKB Functions .206
8.3 ST_Polygon Type and Routines .207
8.3.1 ST_Polygon Type. 207
8.3.2 ST_Polygon Methods. 210
8.3.3 ST_ExteriorRing Methods. 214
8.3.4 ST_InteriorRings Methods. 215
8.3.5 ST_InteriorRingN Method. 217
8.3.6 ST_PolyFromText Functions. 218
8.3.7 ST_PolyFromWKB Functions. 219
8.3.8 ST_PolyFromGML Functions. 220
8.3.9 ST_BdPolyFromText Functions. 221
8.3.10 ST_BdPolyFromWKB Functions.223
© ISO/IEC 2003 - All rights reserved Contents v
---------------------- Page: 5 ----------------------
ISO/IEC 13249-3:2003(E)
9 Geometry Collection Types.225
9.1 ST_GeomCollection Type and Routines.225
9.1.1 ST_GeomCollection Type.225
9.1.2 ST_GeomCollection Methods .229
9.1.3 ST_Geometries Methods.232
9.1.4 ST_NumGeometries Method.234
9.1.5 ST_GeometryN Method .235
9.1.6 ST_GeomCollFromTxt Functions.236
9.1.7 ST_GeomCollFromWKB Functions.237
9.1.8 ST_GeomCollFromGML Functions .238
9.2 ST_MultiPoint Type and Routines.239
9.2.1 ST_MultiPoint Type.239
9.2.2 ST_MultiPoint Methods.242
9.2.3 ST_Geometries Methods.245
9.2.4 ST_MPointFromText Functions.247
9.2.5 ST_MPointFromWKB Functions.248
9.2.6 ST_MPointFromGML Functions.249
9.3 ST_MultiCurve Type and Routines.250
9.3.1 ST_MultiCurve Type.250
9.3.2 ST_MultiCurve Methods.253
9.3.3 ST_IsClosed Method.256
9.3.4 ST_Length Methods.257
9.3.5 ST_Geometries Methods.259
9.3.6 ST_MCurveFromText Functions.261
9.3.7 ST_MCurveFromWKB Functions.262
9.4 ST_MultiLineString Type and Routines .263
9.4.1 ST_MultiLineString Type.263
9.4.2 ST_MultiLineString Methods.266
9.4.3 ST_Geometries Methods.
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.