Name

ValidateTopology — Returns a set of validatetopology_returntype objects detailing issues with topology

Synopsis

setof validatetopology_returntype ValidateTopology(varchar topology_schema_name);

Description

Returns a set of validatetopology_returntype objects detailing issues with topology. Table below lists possible errors and what the id1 and id2 mean in each case

Errorid1id2
edge crosses nodenode_idedge_id # NOTE: should this be swapped?
invalid edgeedge_idnull
edge not simpleedge_idnull
edge crosses edgeedge_idedge_id
edge start node geometry mis-matchedge_idnode_id
edge end node geometry mis-matchedge_idnode_id
face without edgesface_idnull
face has no ringsface_idnull
face overlaps faceface_idface_id
face within faceinner face_idouter face_id

Availability: 1.0.0

Enhanced: 2.0.0 more efficient edge crossing detection and fixes for false positives that were existent in prior versions.

Examples

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

See Also

validatetopology_returntype, Topology_Load_Tiger