Name

ST_GetFaceEdges — aface 의 경계를 이루는 정렬된 경계선들의 집합을 반환합니다.

Synopsis

getfaceedges_returntype ST_GetFaceEdges(varchar atopology, bigint aface);

설명

aface 의 경계를 이루는 정렬된 경계선들의 집합을 반환합니다. 각 출력물은 순차(sequence) 및 경계선 ID(edgeid)로 이루어집니다. 순차 번호는 1부터 시작합니다.

각 고리의 경계선을 가장 작은 식별자를 가진 경계선부터 열거합니다. 경계선의 순서는 왼손 법칙을 따릅니다(각 경계선의 왼쪽 방향으로 표면의 경계선을 구성하게 됩니다).

2.0 버전부터 사용할 수 있습니다.

This method implements the SQL/MM specification. SQL-MM 3 Topo-Geo and Topo-Net 3: Routine Details: X.3.5

예시

This query returns the edges that bound face 1.

SELECT (topology.ST_GetFaceEdges('tt', 1)).*;
sequence | edge
----------+------
        1 |   -4
        2 |    5
        3 |    7
        4 |   -6
        5 |    1
        6 |    2
        7 |    3

This query returns the sequence, edge identifier, and geometry of the edges that bound face 1. Use ST_GetFaceGeometry if only the geometry and sequence are needed.

SELECT t.seq, t.edge, geom
FROM topology.ST_GetFaceEdges('tt', 1) As t(seq, edge)
        INNER JOIN tt.edge AS e ON abs(t.edge) = e.edge_id;