Connect_neighbour

Network functions connect_neighbour

syntax

  • connect_neighbour(point_dataitem)
  • connect_neighbour(point_dataitem, relation)

definition

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.

description

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.

applies to

conditions

The Domain unit of arguments point_dataitem and relation must match.

since version

7.047

example

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

see also