Spatial gems
Spatial gems provide geospatial data processing capabilities for location-based analytics, geographic information systems (GIS), and spatial data transformations. These gems enable you to work with geographic coordinates, perform spatial calculations, and analyze geographic relationships in your data pipelines.
Spatial gems are available through the ProphecyDatabricksSqlSpatial package. Some of these gems leverage Databricks' ST geospatial functions, which require Databricks Runtime 17.1 and above.
Gems
Access the following gems from the Spatial category in the gem drawer.
Buffer
Expand or contracts the boundaries of a polygon or line
CreatePoint
Create geographic points with longitude and latitude coordinates
Distance
Calculate the distance between two points
FindNearest
Identify the shortest distance between spatial objects
Heatmap
Generate spatial heatmaps from geo point data using hexagons
PolyBuild
Create a polygon or polyline from a set of coordinates
Simplify
Decrease the number of nodes that make up a polygon or polyline
SpatialMatch
Find relationships between geographic features