GetLinkDist
Previous  Top  Next

Function GetLinkDist(Link: integer): single;

Returns the length of a specific link. The result is returned in km or miles according to property units.

If 0 is returned, the corresponding record was deleted or not a line-object in the GIS file used when creating the binary network.

Some links may actually have a length of 0, if it consists of 2 vertices with the same set of coordinates. Such are however reported in file "network_report.txt" as part of the network creation (see NWcreate).

Possible error codes: -10 -30
ActiveX / VCL / CLX component: RWnetBase