This gem runs in .
Overview
Use the CreatePoint gem to convert longitude and latitude coordinates into geographic points.Prerequisites
- Add
ProphecyDatabricksSqlSpatialversion 0.0.1 or higher to your project.
Input and Output
The CreatePoint gem accepts the following input and output.Parameters
The CreatePoint gem accepts longitude and latitude columns as parameters. In the Create Spatial Points section, you need to Click to Add a Point. For each point you add, fill in the following information.Example
Assume you have the following airline route table.Scroll horizontally to view the full table.
-
Create the first column pairing:
- Click Add a Point.
-
For Longitude Column Name, select the
start_longcolumn. -
For Latitude Column Name, select the
start_latcolumn. -
For the Target Column Name, type
source_point.
-
Create another column pairing:
- Click Add a Point.
-
For Longitude Column Name, select the
destination_longcolumn. -
For Latitude Column Name, select the
destination_latcolumn. -
For the Target Column Name, type
dest_point.
Result
The CreatePoint gem will produce the following output with two new columns:source_point and dest_point.
Scroll horizontally to view the full table.

