Skip to main content

GeoBrix

High-performance spatial processing library for Databricks

RasterX

Satellite imagery, elevation models, and gridded data — reprojection, terrain analysis, spectral indices, XYZ/PMTiles tiling, and H3/quadbin aggregation. Virtual tiles and a COG-preparation lane process multi-gigabyte rasters memory-safely. In large part, distributed rasterio + best-of-breed raster packages.

Learn more →

GridX

Discrete global grid indexing — British National Grid, CARTO quadbin, and custom user-defined grids: cell math, tessellation, and grid-aware aggregation.

Learn more →

VectorX

Vector operations that augment the native ST functions — Mapbox Vector Tile encoding, TIN elevation surfaces, authority-string CRS transforms, antimeridian handling, and distributed-shapely geometry validity, cleaning, and coverage-validity.

Learn more →

Powerful Readers & Writers

Automatically registered Spark readers and writers for Shapefile, GeoJSON, GeoPackage, GeoTIFF, PMTiles, and more.

Learn more →

Multi-Language APIs

Native Scala implementation with Python and SQL bindings for maximum flexibility.

Learn more →

Databricks Native

Built exclusively for Databricks Runtime, integrated with product spatial functions.

Learn more →

Start with the env wheel — every function, everywhere

One env wheel runs the full GeoBrix API at the Python level: RasterX, VectorX and all of GridX (BNG, H3, quadbin and custom grids). It needs no JAR and no init script, and it works everywhere — Serverless, standard clusters, ARM and Lakeflow declarative pipelines. On a dedicated cluster, the GeoBrix JAR adds a faster JVM level for some functions, and GeoBrix picks it for you.

Surfaces & Levels →

Quick Start

Get up and running with GeoBrix in minutes:

# Install the env wheel for your runtime (one library, its own GDAL, no init script)
# Stage it on a Unity Catalog Volume, then install the quoted PEP 508 named form:
%pip install --quiet "geobrix @ file:///Volumes/<catalog>/<schema>/<volume>/geobrix-<version>+env6-py3-none-any.whl"

# Import and register functions
from databricks.labs import gbx
from databricks.labs.gbx.rasterx import functions as rx
gbx.register(spark)

# Read and process geospatial data
rasters = (spark.read.format("binaryFile").load("/data/rasters")
           .select(rx.rst_fromcontent("content").alias("tile")))
metadata = rasters.select(
    rx.rst_boundingbox("tile").alias("bbox"),
    rx.rst_metadata("tile").alias("metadata")
)

Ready to get started?

Install GeoBrix on your Databricks cluster and unlock powerful geospatial capabilities.

Installation Guide