Connect_neighbour - ObjectVision/GeoDMS GitHub Wiki
Network functions connect_neighbour
- connect_neighbour(point_dataitem)
- connect_neighbour(point_dataitem, relation)
The connect_neighbour(point_dataitem) results in a relation for and towards the domain unit of the point_dataitem, referring to the nearest point in the point_dataitem not being the point itself.
The connect_neighbour(point_dataitem, relation) function results in a relation for and towards the domain unit of the point_dataitem, referring to the nearest point in the point_dataitem not being the point itself and being a point within the relation.
The connect_neighbour is a special variant of the first variant of the connect function.
The connect(point_dataitem, point_dataitem) function results in a relation to the nearest point, usually the same point. The connect_neighbour function results in the relation to the nearest point, not being the same point.
- data item point_dataitem with Point value type.
The domain unit of arguments point_dataitem and relation must match.
7.047
attribute<origin> origin_rel (origin) := connect_neighbour(origin/geometry);
| origin/geometry | origin_rel |
|---|---|
| xy(115135; 401331) | 2 |
| xy(111803; 399476) | 4 |
| xy(114903; 399289) | 0 |
| xy(111353; 401729) | 1 |
| xy(111741; 398696) | 1 |
domain origin, nr of rows = 5