GISarabia.org
PostGIS › الدليل الرسمي › 9. الطوبولوجيا › 9.7. دوال الوصول إلى الطوبولوجيا
PostGIS 3.6 · Official Manual · ترجمة عربية

ST_GetFaceEdges

الصفحة الأصلية بالإنجليزية postgis.net ↗

الاسم

ST_GetFaceEdges — تُعيد مجموعة مرتّبة من الحواف التي تحدّ aface.

المختصر

getfaceedges_returntype ST_GetFaceEdges(varchar atopology, bigint aface);

الوصف

تُعيد مجموعة مرتّبة من الحواف التي تحدّ aface. يتكوّن كل مُخرج من رقم تسلسلي ومعرّف حافة (edgeid). تبدأ الأرقام التسلسلية بالقيمة 1.

يبدأ تعداد حواف كل حلقة من الحافة ذات المعرّف الأصغر. ويتبع ترتيب الحواف قاعدة اليد اليسرى (يقع الوجه المحدود على يسار كل حافة موجّهة).

متاحة منذ: 2.0

تطبّق هذه الدالة مواصفة SQL/MM. SQL-MM 3 Topo-Geo and Topo-Net 3: Routine Details: X.3.5

أمثلة

-- Returns the edges bounding face 1
SELECT (topology.ST_GetFaceEdges('tt', 1)).*;
-- result --
 sequence | edge
----------+------
        1 |   -4
        2 |    5
        3 |    7
        4 |   -6
        5 |    1
        6 |    2
        7 |    3
(7 rows)
-- Returns the sequence, edge id
-- and geometry of the edges that bound face 1
-- If you just need geom and seq, can use ST_GetFaceGeometry
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;

انظر أيضًا

GetRingEdges, AddFace, ST_GetFaceGeometry