ST_Boundary — Renvoie la limite d'une géométrie.
geometry ST_Boundary(geometry geomA);
Renvoie l'ensemble formant la frontière finie de cette géométrie. La notion de frontière est définie dans la section 3.12.3.2 des spécifications OGC. Le résultat de cette fonction est un ensemble topologiquement fermé, représentable avec les types de base, comme décrit dans la section 3.12.2 des spécifications OGC.
Effectué par le module GEOS
|
|
|
Avant la version 2.0.0, cette fonction renvoie une exception si une |
Cette méthode implémente la spécification OGC Simple Features Implementation Specification for SQL 1.1. OGC SPEC s2.1.1.1
Cette méthode implémente la spécification SQL/MM. SQL-MM IEC 13249-3: 5.1.17
Cette fonction prend en charge la 3D et ne supprime pas l'indice z.
Amélioration : 2.1.0 introduction du support pour Triangle
Modifié : 3.2.0 support pour TIN, n'utilise pas geos, ne linéarise pas les courbes
LineString with boundary points overlaid.
SELECT ST_Boundary(geom)
FROM (SELECT 'LINESTRING(100 150,50 60,70 80,160 170)'::geometry As geom) As f;
MULTIPOINT((100 150),(160 170))
Polygon holes with the boundary MultiLineString overlaid.
SELECT ST_Boundary(geom)
FROM (SELECT
'POLYGON (( 10 130,50 190,110 190,140 150,150 80,100 10,20 40,10 130 ),
( 70 40,100 50,120 80,80 110,50 90,70 40 ))'::geometry As geom) As f;
MULTILINESTRING((10 130,50 190,110 190,140 150,150 80,100 10,20 40,10 130),
(70 40,100 50,120 80,80 110,50 90,70 40))
SELECT ST_Boundary('LINESTRING(1 1,0 0,-1 1)');
MULTIPOINT((1 1),(-1 1))
SELECT ST_Boundary('POLYGON((1 1,0 0,-1 1,1 1))');
LINESTRING(1 1,0 0,-1 1,1 1)
This example uses a 3D polygon.
SELECT ST_Boundary('POLYGON((1 1 1,0 0 1,-1 1 1,1 1 1))');
LINESTRING(1 1 1,0 0 1,-1 1 1,1 1 1)
This example uses a 3D MultiLineString.
SELECT ST_Boundary('MULTILINESTRING((1 1 1,0 0 0.5,-1 1 1),(1 1 0.5,0 0 0.5,-1 1 0.5,1 1 0.5) )');
MULTIPOINT(1 1 1,-1 1 1)