-
Notifications
You must be signed in to change notification settings - Fork 1
Centroid_or_mid
mtbeek32 edited this page Jan 2, 2023
·
16 revisions
Geometric functions centroid_or_mid
- centroid_or_mid(polygon_dataitem)
centroid_or_mid(polygon_dataitem) results in a point data item with
- the centroid if it is located in the polygon
- or else the mid-point of the polygon_dataitem argument.
The centroid_or_mid function results in the centroid if it is located within the polygon or else in the mid of the polygon.
Point data item polygon_dataitem with fpoint or dpoint value type and composition type polygon
attribute
<point_rd> centroid_or_mid (district) :=
centroid_or_mid
(district/geometry);
district/geometry | centroid_or_mid | |
{21 {403025, 113810}{4 | {402955, 113049} | |
{17 {400990, 113269}{4 | {401159, 112704} | |
{19 {401238, 115099}{4 | {401268, 114017} |
domain district, nr of rows = 3
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.