Skip to content

Extract from GeoColumn

Description

The Extract from GeoColumn activity extracts spatial characteristics like:

  • Centroid – The central point of the geometry.
  • Length – Total boundary length for linear or polygonal shapes.
  • Area – Enclosed space for polygons.

This activity operates on geometry values and adds the computed attributes as new columns.

Use case: If your dataset includes geometries, this activity can enrich it with derived metrics for spatial analysis or map visualization.

Input

  • Data – Required

Output

Output TypeFormatDescription
DataTabularOriginal data enriched with centroid, length, and area columns.

Configuration Fields

Field NameDescription
Geometry ColumnColumn containing geometry values. Required.
Centroid Point ColumnNew column name to store the computed centroid point. Required.
Length ColumnNew column name to store the geometry length (for lines/polygons). Required.
Area ColumnNew column name to store the area (for polygons only). Required.

Sample Input

IDGeometry
1POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))
2LINESTRING(0 0, 3 4)
3POINT(2 3)
4INVALID

Sample Configuration

FieldValue
Geometry columnGeometry
Centroid point columnGeo_Centroid
Length columnGeo_Length
Area columnGeo_Area

Sample Output

IDGeo_CentroidGeo_LengthGeo_Area
1POINT (2.5 2.5)20.0025.00
2POINT (1.5 2)5.00
3POINT (2 3)