Skip to content

Compute Distance Between Geospatial Points

Description

This activity computes the distance between geospatial points in the dataset based on user-defined comparison types. The user can compare a column of geospatial points against a fixed location, a fixed geospatial object, or another geospatial column. The computed distance is stored in a new column.

Input

Data

Output

Transformed Data

Configuration Fields

  • Compare Type Type of comparison (Options include Fixed Geo Point, Fixed Geospatial Object, Another Geospatial Column).
  • Fixed Geopoint The fixed geospatial point for distance comparison (Rendered when CompareType is Fixed Geo Point).
  • Latitude Column Column containing latitude values in the dataset (Rendered when CompareType is Fixed Geo Point).
  • Longitude Column Column containing longitude values in the dataset (Rendered when CompareType is Fixed Geo Point).
  • Latitude Value For FixedGeopoint Latitude of the fixed geospatial point.
  • LongitudeValue For FixedGeopoint Longitude of the fixed geospatial point.
  • GeoColumn Column containing geospatial points (Rendered when CompareType is Fixed Geospatial Object).
  • Column For Comparision The column to compare against (Rendered when CompareType is Another Geospatial Column).
  • Distance Column Name The name of the column where the computed distances will be stored.

Sample Input

IDLatitudeLongitude
128.704177.1025
234.0522-118.2437
348.85662.3522
451.5074-0.1278
540.7128-74.0060

Sample Configuration

alt text

Sample Output

IDLatitudeLongitudeDistanceFromBangalore
128.704177.10251756.4
234.0522-118.243714572.1
348.85662.35228023.5
451.5074-0.12788276.3
540.7128-74.006013386.7