Calculates the centroid of a given geometry.
Category: Geometric
Source:
This function is used to create a centroid (or geometric center) for each feature geometry in the source dataset. The resulting
centroids are mapped to the target property as point features.
In the example below, the centroid function was applied to populate the target geometry with the centroids of the source geometry features.
Note that for mapping centroids the target source has to have a point geometry.
The picture below shows the result of the centroid function, where for each element of the target source data (left) a centroid was added.