NodeLinkCheck
Previous  Top  Next

Function NodeLinkCheck(filename: string; buffer: double): integer;

This function checks the validity of the network by creating a small buffer around all network nodes and checking if all links within the buffer is connected to the node. Any place, where this is not the situation, is stored in a GIS file for later inspection.

Buffer should be in the same unit as units. Use a rather small value for buffer such as 0.001 for 1 meter or perhaps even smaller.

Supply a full filename including path for output, but excluding extension. The format of the GIS file is determined by property GISformat.

The output file contains 2 integer fields with this information:
Node: ID of the node
Link: ID of non-connected link

The function returns the number of problems found or an error code.

The function may identify some of the same problems as the other network checking routines (FindCloseNodes in particular) and doing a simple check for very short links is always a good idea, before running the routine, since these can trigger many "false" problems.

Use the OnAnalyzeProgress event for tracking progress.

Performance example: Checking a network with 590,000 links took 7 minutes on a AMD64 based computer. If possible make sure coord3cache = true as in this example.

Possible error codes: -10 -30 -44 -46 -50
Versions: Pro
ActiveX / VCL / CLX component: RWnetBase