oracle geometry 幾何關係 sdo_Geom.Relate

  sdo_Geom.Relate(sdo_Geometry1, ‘MASK’, sod_Geometry2, tolerance ):用於判斷一個幾何體與另一個幾何體的關係,我們用於判斷當前點是否在某一個面(省份面、縣市面、鄉鎮面)上。
  參數說明:
    sdo_Geometry1,sdo_Geometry2爲空間數據對應的幾何對象。
    Tolerance: 容許的精度範圍;

  MASK參數:
    Anyinteract: sdo_Geometry2落在sdo_Geometry1面上包括在邊上。
    Contains: sdo_Geometry2完全包含在sdo_Geometry1幾何對象中,並且兩個幾何對象的邊沒有交叉。
    Coveredby: sdo_Geometry1完全包含在sdo_Geometry2中,並且這兩個幾何對象的邊有一個或多個點相互重疊。
    Covers: sdo_Geometry2完全包含在sdo_Geometry1中,並且這兩個幾何對象的邊有一個或多個點相互重疊。
    Disjoint: 兩個幾何沒有重疊交叉點,也沒有共同的邊。
    Equal: 兩個幾何是相等的。
    Inside: sdo_Geometry1完全包含在sdo_Geometry2幾何對象中,並且兩個幾何對象的邊沒有交叉。
    On: sdo_Geometry1的邊和內部的線完全在sdo_Geometry2上。
    Overlapbdydisjoint: 兩個幾何對象交迭,但是邊沒有交叉。
    Overlapbdyintersect: 兩個幾何對象交迭,並且邊有部分交叉。

    Touch: 兩個幾何對象有共同的邊,但沒有交叉。

看oracle官網,能使用sdo_relate,儘量使用sdo_relate

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章