Point_in_all_polygons - ObjectVision/GeoDMS GitHub Wiki
Geometric functions point_in_all_polygons

- point_in_all_polygons(point_data_item, polygon_data_item)
 
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.
- a data item point_data_item with Point value type
 - a data item polygon_data_item with composition type polygon and Point value type
 
8.035
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