名前

ValidateTopology — トポロジの問題についての詳細を示すvalidatetopology_returntypeの集合を返します。

概要

setof validatetopology_returntype ValidateTopology(varchar toponame, geometry bbox);

説明

トポロジの問題の詳細説明に関するvalidatetopology_returntypeオブジェクトを返します。任意にbboxパラメータで指定された範囲に確認を制限します。

ありえるエラーと返されたIDが表現するものの一覧は次の通りです。

Errorid1id2
coincident nodes (訳注: 重複ノード)node_idnull
edge crosses node (訳注: エッジとノードのクロス)edge_idnode_id
invalid edge (訳注: 不正なエッジ)edge_idnull
edge not simple (訳注: 単純でないエッジ)edge_idnull
edge crosses edge (訳注: エッジとエッジのクロス)edge_idedge_id
edge start node geometry mis-match (訳注: 開始ノードジオメトリの不整合)edge_idnode_id
edge end node geometry mis-match (訳注: 終了ノードジオメトリの不整合)edge_idnode_id
face without edges (訳注: エッジのないフェイス)face_idnull
face has no rings (訳注: 環のないフェイス)face_idnull
face has wrong mbr (訳注: 誤ったバウンディングボックスを持ったフェイス)face_idnull
hole not in advertised face (訳注: 穴がフェイス内に存在しない)リングを識別する符号付きedge_idnull
not-isolated node has not-null containing_face (訳注: containing_faceが存在するノードが孤立ノードでない)node_idnull
isolated node has null containing_face (訳注: この孤立ノードを含んでいるフェイスが無い)node_idnull
isolated node has wrong containing_face (訳注: この孤立ノードを含んでいるフェイスが不正)node_idnull
invalid next_right_edge (訳注: 不正なnext_right_edge)edge_idnull
invalid next_left_edge (訳注: 不正なnext_left_edge)edge_idnull
mixed face labeling in ring (訳注: リングにラベルが付いた混合フェイス)リングを識別する符号付きedge_idnull
non-closed ring (訳注: 閉じていないリング)リングを識別する符号付きedge_idnull
face has multiple shells (訳注: 複数の外殻を持つフェイス)face_idリングを識別する符号付きedge_id
face overlaps face (訳注: フェイス同士のオーバラップ)face_idface_id
face within face (訳注: フェイス間の包含) 内側のface_id外側のface_id
invalid next_left_edge (訳注: 不正なnext_left_edge)edge_id期待されるnext_left_edge値
invalid next_right_edge (訳注: 不正なnext_right_edge)edge_id期待されるnext_right_edge値

Availability: 1.0.0

Enhanced: 2.0.0では、より効果的なエッジ交差検出が可能になり、以前の版で残っていた偽陽性を解決しています。

Changed: 2.2.0 エラーの記述と矛盾しないように'edge crosses node'のid1とid2の値が入れ替わっています。

Changed: 3.2.0 任意パラメータbboxの追加、フェイスラベルとエッジリンクのチェックの追加

SELECT * FROM  topology.ValidateTopology('ma_topo');
      error        | id1 | id2
-------------------+-----+-----
face without edges |   1 |
                                

関連情報

validatetopology_returntype, Topology_Load_Tiger