logo-header

 
 

syntax

  • connect_neighbour(point_geom )
  • connect_neighbour(point_geom, partioning )

definition

  1. The connect_neighbour function(point_geom) results in the index number of the domain unit of the point_geom attribute, referring to the nearest point in the poinset attribute not being the point itself.
  2. The connect_neighbour function(point_geompartioning ) results in the index number of the domain unit of the point_geom attribute, referring to the nearest point in the poinset attribute not being the point itself and being a point in the partioning .

description

The connect(point_geom, point_geom) function results in a reference for each point in the point_geom attribute to the nearest point in the same point_geom attribute, usually being the same point. The connect_neighbour function results in the index number for the nearest point, nog being the same point.

applies to

Attribute point_geom with point value type.

conditions

The domain of argument point_geom and partioning must match.

since version

7.047

example

attribute<Origin> Origin_rel (Origin) := 
connect_neighbour(Origin/geometry);
origin/geometry   Origin_rel
{401331, 115135} 2
{399476, 111803} 4
{399289, 114903} 0
{401729, 111353} 1
{398696, 111741} 1
domain Origin, nr of rows = 5

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904