IsoPoly3

Top  Previous  Next

Function IsoPoly3(filename: string; maxcost: single; nodenum, min_valency: integer; Xlong1,Ylat1,Xlong2,Ylat2: double): integer;

 

IsoPoly3 calculates voronoi polygons (cells), which shows the cost associated with each node in the network.

 

The result is saved to filename, which should include path and filename, but exclude extension.

 

The attribute file also holds information on the id of the nearest node.

 

The output format is determined by property GISformat.

 

The function can use one or more nodes as a basis for the calculation of node cost. Nodenum specifies the number of nodes entered into the standard nodelist.

 

Maxcost specifies the maximum cost for the voronoi cells.

 

By specifying min_valency it is possible to restrict the generation of cells to nodes with a minimum valency, that is the more important nodes.

 

It is also possible to restrict the cells to a specific area of the network based on a window defined by (xmin,ymin) - (xmax,ymax).

 

The best way to understand these parameters is to try rwnetdemo.exe, which makes it possible to adjust all parameters easily and see the result immediately.

 

See also property AddNodes and separate discussion.

 

Latitude/longitude coordinates are not really supported by this function, but only in rare situations will it actually affect the generated polygons.

 

Possible error codes: -10 -30 -40 -41 -43

Versions: Standard Pro

ActiveX / VCL / CLX component: RWcalc