Skip to content

PostGIS: Calculate centroid

Plugin ID: eca_geofield_postgis_calculate_centroid

Available since: 1.0.0

Calculates the centroid of a geometry and stores it as an ECA token.

Fields

Source geometry — config key: source_geometry

The geometry to calculate the centroid of. Supports ECA token replacement. The value must be an EWKB hex string.
This field supports tokens.

Type: textfield · Required: yes · Default: empty string

Token name — config key: token_name

Name of the ECA token to store the centroid geometry in (as EWKB hex). Please provide the token name only, without brackets.

Type: textfield · Required: yes · Default: empty string