Description
VECTopoConsistencyCheck() is used to verify that a particular area (LAYER_TYPE = TOPO_AREAS) layer, and its associated arc and node layers are topologically consistent.
Call Signature
mstring VECTopoConsistencyCheck ( int/string filespec, int segment_num [, double tolerance] )
Return Value
mstring
An mstring report of the inconsistencies. If the length of the report is zero, then there are no inconsistencies.
Arguments
int/string filespec:
This can either be the handle returned by DBOpen(), or the name of an open file.
int segment_num:
The vector layer (segment) number being accessed.
[ double tolerance ]:
The maximum distance in georeferenced units that two points may be apart, and still be considered the same location.
Remarks
For the arc layer, it checks that:
For the node layer (if it exists), it checks that:
For the area layer (if it exists), it checks that:
Example
Test an area layer for topological consistency, and report to the user.
local mstring TopoReport, int file_spec
try
file_spec = DBOpen( GetPCIHOME()+"/demo/irvine.pix", "r" )
TopoReport = VECTopoConsistencyCheck( file_spec, 28 )
call DBClose( file_spec )
if( f$len(TopoReport) > 0 )then
print TopoReport
else
print "Topology is consistent."
endif
onerror
print "Error: ", GetLastErrorMessage()
endonerror
Output:
Topology is consistent.
See also
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.