Link Nearest Neighbour¶
Joins the closest link view component to a leading view component.
Parameter¶
Name | Type | Description |
---|---|---|
leadingViewName | STRING | source nodes |
linkViewName | STRING | linked nodes |
max_distance | DOUBLE | max search radius (default 100m) |
Data-stream¶
View | Attribute | Type | Access | Description |
---|---|---|---|---|
leadingViewName | NODE | read | ||
linkViewName_id | INT | write | link id to the closest link view component | |
linkViewName | NODE | read |
Module Name¶
GDALJoinNearestNeighbour
Sample Code for Python Simulation¶
#Join inlets to nodes with a search radius of 100m
node_join = sim.add_module('GDALJoinNearestNeighbour',
{'leadingViewName': 'inlet',
'linkViewName': 'node'
'max_distance': 100},
inlets)