| 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.5 Fonctions d'analyse des lignes Polygon 
 
     Area(poly)
     
Retourne un nombre à virgule en double précision représentant l'aire
de l'objet  
Polygon
 
poly
 , tel que mesuré dans son référentiel. 
| 
mysql> SET @poly = 'Polygon((0 0,0 3,3 0,0 0),(1 1,1 2,2 1,1 1))';mysql> SELECT Area(GeomFromText(@poly));
 +---------------------------+
 | Area(GeomFromText(@poly)) |
 +---------------------------+
 |                         4 |
 +---------------------------+
 | 
 
     NumInteriorRings(poly)
    
      Retourne le nombre d'anneau intérieurs de  
poly
 .
 
| 
mysql> SET @poly =-> 'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1))';
 mysql> SELECT AsText(ExteriorRing(GeomFromText(@poly)));
 +-------------------------------------------+
 | AsText(ExteriorRing(GeomFromText(@poly))) |
 +-------------------------------------------+
 | LINESTRING(0 0,0 3,3 3,3 0,0 0)           |
 +-------------------------------------------+
 | 
 
     InteriorRingN(poly,n)
    
      Retourne le  
n
 -ième anneau intérieur de l'objet  
Polygon
 
poly
  sous forme d'un objet  
LineString
 .
Ring numbers begin at 1.
 
| 
mysql> SET @poly =-> 'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1))';
 mysql> SELECT AsText(InteriorRingN(GeomFromText(@poly),1));
 +----------------------------------------------+
 | AsText(InteriorRingN(GeomFromText(@poly),1)) |
 +----------------------------------------------+
 | LINESTRING(1 1,1 2,2 2,2 1,1 1)              |
 +----------------------------------------------+
 | 
 
     InteriorRingN(poly,n)
     
Retourne le nombre d'anneaux intérieurs dans l'objet  
Polygon
 
poly
 .
 
| 
mysql> SET @poly =-> 'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1))';
 mysql> SELECT NumInteriorRings(GeomFromText(@poly));
 +---------------------------------------+
 | NumInteriorRings(GeomFromText(@poly)) |
 +---------------------------------------+
 |                                     1 |
 +---------------------------------------+
 | 
 |