Point_in_all_polygons

geometric-functions point_in_all_polygons

syntax

  • point_in_all_polygons(point_data_item, polygon_data_item)

definition

point_in_all_polygons(point_data_item, polygon_data_item) results in a new uint32 domain-unit with two subitems: first_rel and second_rel.

These subitems indicate which point is located in which polygons, as a point can be located in multiple polygons and a polygon can container multiple points, this is an n to n relation.

The first_rel item contains the relation to the point_data_item.

The second_rel item contains the relation to the polygon_data_item.

applies to

since version

8.035

example

unit<uint32> district_relations := point_in_all_polygons(Pointdomain/point, district/geometry);
first_rel second_rel
0 0
1 1
2 0
2 1
Pointdomain/id Pointdomain/label Pointdomain/point
0 A {401331, 115135}
1 B {399476, 111803}
2 C {399289, 114903}
     

domain Pointdomain, nr of rows = 3

District/id District/geometry
0 {21:{403025, 113810},{4
1 {17:{400990, 113269},{4
   

domain District, nr of rows = 2

see also