Skip to content

Create Area Around Geospatial Points

Description

This activity generates an area around a geospatial point based on user-defined parameters. The user can define the shape of the area (rectangle or circle) and specify size constraints such as width, height, or radius. The generated area is stored as a polygon in a new column.

Input

Data

Output

Transformed Data

Configuration Fields

  • Geo Point Column Name The input column containing the geopoints.
  • Polygon Column Name The output column where the generated polygons will be stored.
  • Polygon Shape The shape of the polygon to be generated (Options Rectangle, Circle).
  • Distance Unit The unit for distance measurements (Options Kilometers, Miles).
  • Height Height of the rectangular polygon (Rendered when Polygon Shape is Rectangle).
  • Width Width of the rectangular polygon (Rendered when Polygon Shape is Rectangle).
  • Radius Radius of the circular polygon (Rendered when Polygon Shape is Circle).

Sample Input

LocationLatitudeLongitudeGeoPoint
New York40.7128-74.0060POINT(-74.006 40.7128)
Los Angeles34.0522-118.2437POINT(-118.2437 34.0522)
Chicago41.8781-87.6298POINT(-87.6298 41.8781)
Houston29.7604-95.3698POINT(-95.3698 29.7604)
Phoenix33.4484-112.0740POINT(-112.074 33.4484)

Sample Configuration

alt text

Sample Output

LocationLatitudeLongitudeGeoPointGeometry
New York40.7128-74.0060POINT(-74.006 40.7128)POLYGON((-74.0105 40.6965, -74.0105 40.7291, -74.0015 40.7291, -74.0015 40.6965, -74.0105 40.6965))
Los Angeles34.0522-118.2437POINT(-118.2437 34.0522)POLYGON((-118.2482 34.0617, -118.2482 34.0427, -118.2392 34.0427, -118.2392 34.0617, -118.2482 34.0617))
Chicago41.8781-87.6298POINT(-87.6298 41.8781)POLYGON((-87.6343 41.7694, -87.6343 41.9868, -87.6253 41.9868, -87.6253 41.7694, -87.6343 41.7694))
Houston29.7604-95.3698POINT(-95.3698 29.7604)POLYGON((-95.3743 29.8084, -95.3743 29.7123, -95.3653 29.7123, -95.3653 29.8084, -95.3743 29.8084))
Phoenix33.4484-112.0740POINT(-112.074 33.4484)POLYGON((-112.0785 33.4604, -112.0785 33.4364, -112.0695 33.4364, -112.0695 33.4604, -112.0785 33.4604))