Fonctions d'analyse des lignes MultiPolygon
<<<
Fonctions d'analyse des lignes GeometryCollection Analyser des données géographiques
>>>

19.5.2 Fonction d'analyse des propriétés des formes Geometry
19.5 Analyser des données géographiques
19 Données spatiales avec MySQL
 Manuel de Référence MySQL 4.1 : Version Française

Fonctions générales d'analyse géométrique
Fonctions d'analyse des Point
Fonctions d'analyse des lignes LineString
Fonctions d'analyse des lignes MultiLineString
Fonctions d'analyse des lignes Polygon
Fonctions d'analyse des lignes MultiPolygon
->Fonctions d'analyse des lignes GeometryCollection

19.5.2.7 Fonctions d'analyse des lignes GeometryCollection

    NumGeometries(gc)
    Retourne le nombre de formes géométriques qui constituent l'objet GeometryCollection gc .
    
    mysql> SELECT NumGeometries(GeomFromText('GeometryCollection(Point(1 1),LineString(2 2, 3 3))'));
    +------------------------------------------------------------------------------------+
    | NumGeometries(GeomFromText('GeometryCollection(Point(1 1),LineString(2 2, 3 3))')) |
    +------------------------------------------------------------------------------------+
    |                                                                                  2 |
    +------------------------------------------------------------------------------------+
    GeometryN(gc,n)
    Retourne le n -ième objet constituant l'objet GeometryCollection gc . La numérotation commence à 1.
    
    mysql> SELECT AsText(GeometryN(GeomFromText('GeometryCollection(Point(1 1),LineString(2 2, 3 3))'),1));
    +------------------------------------------------------------------------------------------+
    | AsText(GeometryN(GeomFromText('GeometryCollection(Point(1 1),LineString(2 2, 3 3))'),1)) |
    +------------------------------------------------------------------------------------------+
    | POINT(1 1)                                                                               |
    +------------------------------------------------------------------------------------------+

<< Fonctions d'analyse des lignes GeometryCollection >>
Fonctions d'analyse des lignes MultiPolygon Fonction d'analyse des propriétés des formes Geometry Analyser des données géographiques