Name

ValidateTopology — Liefert eine Menge validatetopology_returntype Objekte, die Probleme mit der Topologie beschreiben.

Synopsis

setof validatetopology_returntype ValidateTopology(varchar toponame, geometry bbox);

Beschreibung

Returns a set of validatetopology_returntype objects detailing issues with topology, optionally limiting the check to the area specified by the bbox parameter.

List of possible errors, what they mean and what the returned ids represent are displayed below:

Errorid1id2Meaning
coincident nodesIdentifier of first node.Identifier of second node.Two nodes have the same geometry.
edge crosses nodeIdentifier of the edge.Identifier of the node.An edge has a node in its interior. See ST_Relate.
invalid edgeIdentifier of the edge. An edge geometry is invalid. See ST_IsValid.
edge not simpleIdentifier of the edge. An edge geometry has self-intersections. See ST_IsSimple.
edge crosses edgeIdentifier of first edge.Identifier of second edge.Two edges have an interior intersection. See ST_Relate.
edge start node geometry mis-matchIdentifier of the edge.Identifier of the indicated start node. The geometry of the node indicated as the starting node for an edge does not match the first point of the edge geometry. See ST_StartPoint.
edge end node geometry mis-matchIdentifier of the edge.Identifier of the indicated end node. The geometry of the node indicated as the ending node for an edge does not match the last point of the edge geometry. See ST_EndPoint.
face without edgesIdentifier of the orphaned face.  No edge reports an existing face on either of its sides (left_face, right_face).
face has no ringsIdentifier of the partially-defined face.  Edges reporting a face on their sides do not form a ring.
face has wrong mbrIdentifier of the face with wrong mbr cache.  Minimum bounding rectangle of a face does not match minimum bounding box of the collection of edges reporting the face on their sides.
hole not in advertised faceSigned identifier of an edge, identifying the ring. See GetRingEdges.  A ring of edges reporting a face on its exterior is contained in different face.
not-isolated node has not- containing_faceIdentifier of the ill-defined node.  A node which is reported as being on the boundary of one or more edges is indicating a containing face.
isolated node has containing_faceIdentifier of the ill-defined node.  A node which is not reported as being on the boundary of any edges is lacking the indication of a containing face.
isolated node has wrong containing_faceIdentifier of the misrepresented node.  A node which is not reported as being on the boundary of any edges indicates a containing face which is not the actual face containing it. See GetFaceContainingPoint.
invalid next_right_edgeIdentifier of the misrepresented edge. Signed id of the edge which should be indicated as the next right edge. The edge indicated as the next edge encountered walking on the right side of an edge is wrong.
invalid next_left_edgeIdentifier of the misrepresented edge. Signed id of the edge which should be indicated as the next left edge. The edge indicated as the next edge encountered walking on the left side of an edge is wrong.
mixed face labeling in ringSigned identifier of an edge, identifying the ring. See GetRingEdges.  Edges in a ring indicate conflicting faces on the walking side. This is also known as a "Side Location Conflict".
non-closed ringSigned identifier of an edge, identifying the ring. See GetRingEdges.  A ring of edges formed by following next_left_edge/next_right_edge attributes starts and ends on different nodes.
face has multiple shellsIdentifier of the contended face. Signed identifier of an edge, identifying the ring. See GetRingEdges. More than a one ring of edges indicate the same face on its interior.

Verfügbarkeit: 1.0.0

Erweiterung: 2.0.0 effizientere Ermittlung sich überkreuzender Kanten. Falsch positive Fehlmeldungen von früheren Versionen fixiert.

Änderung: 2.2.0 Bei 'edge crosses node' wurden die Werte für id1 und id2 vertauscht, um mit der Fehlerbeschreibung konsistent zu sein.

Changed: 3.2.0 added optional bbox parameter, perform face labeling and edge linking checks.

Beispiele

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

Siehe auch

validatetopology_returntype, Topology_Load_Tiger