PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.3Kb
Man Pages (Zip) - 402.5Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0
These functions return properties ofGeometryCollection values.
Unless otherwise specified, functions in this section handle their geometry arguments as follows:
If any argument is
NULLor any geometry argument is an empty geometry, the return value isNULL.If any geometry argument is not a syntactically well-formed geometry, an
ER_GIS_INVALID_DATAerror occurs.If any geometry argument is a syntactically well-formed geometry in an undefined spatial reference system (SRS), an
ER_SRS_NOT_FOUNDerror occurs.Otherwise, the return value is non-
NULL.
These functions are available for obtaining geometry collection properties:
Returns the
N-th geometry in theGeometryCollectionvaluegc. Geometries are numbered beginning with 1.ST_GeometryN()handles its arguments as described in the introduction to this section.mysql> SET @gc = 'GeometryCollection(Point(1 1),LineString(2 2, 3 3))';mysql> SELECT ST_AsText(ST_GeometryN(ST_GeomFromText(@gc),1));+-------------------------------------------------+| ST_AsText(ST_GeometryN(ST_GeomFromText(@gc),1)) |+-------------------------------------------------+| POINT(1 1) |+-------------------------------------------------+Returns the number of geometries in the
GeometryCollectionvaluegc.ST_NumGeometries()handles its arguments as described in the introduction to this section.mysql> SET @gc = 'GeometryCollection(Point(1 1),LineString(2 2, 3 3))';mysql> SELECT ST_NumGeometries(ST_GeomFromText(@gc));+----------------------------------------+| ST_NumGeometries(ST_GeomFromText(@gc)) |+----------------------------------------+| 2 |+----------------------------------------+
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.3Kb
Man Pages (Zip) - 402.5Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0