SDO_ELEM_INFO et SDO_ORDINATES

SDO_ORDINATES

Tableau contenant toutes les coordonnées de la géométrie.

Format : (x1, y1, x2, y2, x3, y3, …).

Pour un point : (x, y).

Pour une ligne : (x1, y1, x2, y2, …, xn, yn).

Pour un polygone : (x1, y1, …, xn, yn, x1, y1) où le dernier point = premier point.

SDO_ELEM_INFO

Tableau de triplets décrivant comment interpréter SDO_ORDINATES.

Structure : (Starting Offset, Element Type, Interpretation, …).

Starting Offset : position de départ dans SDO_ORDINATES (commence à 1).

Element Type : type d’élément géométrique.

Interpretation : dépend du type d’élément.

Types d’éléments

1 : Point(s) 2 : Ligne/Arc 3 : Polygone extérieur 2003 : Polygone intérieur (trou)

Exemples

Point simple :

SDO_ELEM_INFO = (1, 1, 1)  -- offset=1, type=point, interp=1 point
SDO_ORDINATES = (10, 20)

Ligne de 3 points :

SDO_ELEM_INFO = (1, 2, 1)  -- offset=1, type=ligne, interp=1 (ligne droite)
SDO_ORDINATES = (0, 0, 5, 5, 10, 0)

Voir Exemples de géométries pour des cas concrets.