Known Limitations
GeoBrix has some known limitations that will be addressed in future releases.
Databricks Spatial Types
Current State
GeoBrix does not yet support Databricks Spatial Types directly but is standardized to WKB or WKT where geometries are involved.
Workaround
Convert GeoBrix output to Databricks types:
from pyspark.sql.functions import expr
# Read with GeoBrix
df = spark.read.format("shapefile_gbx").load("/Volumes/main/default/geobrix_samples/geobrix-examples/nyc/subway/nyc_subway.shp.zip")
# Convert to Databricks built-in GEOMETRY type
geometry_df = df.select(
"*",
expr("st_geomfromwkb(geom_0)").alias("geometry")
)
# Now use built-in ST functions
result = geometry_df.select(
"geometry",
expr("st_area(geometry)").alias("area")
)
result.limit(5).show()
+------------------------------+-----+
|geometry |area |
+------------------------------+-----+
|SRID=4326;POINT (-73.99 40.73)|0.0 |
|SRID=4326;POINT (-73.98 40.75)|0.0 |
|... |... |
+------------------------------+-----+
Function Availability
A small number of capabilities are not yet available:
Spatial KNN
Spatial K-Nearest Neighbors is not yet ported:
- No KNN operations currently available
Coordinate Reference Systems (PROJ version skew)
GeoBrix's GDAL stack and DBR's built-in spatial functions each carry their own PROJ runtime. They coexist on the cluster but are not the same library, and the two PROJ versions can diverge slightly:
- GeoBrix's GDAL comes from the env wheel: GDAL 3.13.3, PROJ 9.9.0 and GEOS 3.15.0, in the wheel's own directory. The Python and JVM levels both use that PROJ and its data.
- DBR 17.3 LTS's built-in
ST_*functions link to PROJ 9.7.1, bundled with the runtime under/databricks/native/(withPROJ_DATA=/databricks/native/proj-data). Not registered withldconfigand not installed via apt — fully isolated from/usr/lib.
The two run side-by-side in the same JVM/Python process without conflict, because they're loaded from distinct paths. The cost is CRS-catalog skew at the edges. Any EPSG code added or refined between PROJ 9.7.1 and 9.9.0 may be interpreted slightly differently. The difference shows between a GeoBrix function and a DBR built-in operating on the same geometry. It covers newly-added projections, updated grid-shift definitions, and transformation pipeline changes.
For the common EPSG codes you're most likely to use day-to-day —
EPSG:4326, EPSG:3857, EPSG:27700, the UTM zones — this is
invisible. For freshly-added projections or very precise datum
transformations, it may surface.
If you find a CRS-related discrepancy between a GeoBrix function
and a DBR ST_* built-in on the same input, please
file an issue.
Include the EPSG code and a minimal repro. That is the signal we would use to
decide whether GeoBrix should follow DBR's PROJ version.
Compute Requirements
The compute requirements below apply to the JVM level (heavyweight: the GeoBrix JAR + native GDAL). The Python level (lightweight: the env wheel for the runtime, e.g. geobrix-<version>+env6, with its own GDAL) has none of them. It runs on Serverless compute (environment v6), standard (shared) clusters, Lakeflow declarative pipelines, and ARM. See Surfaces & Levels.
The JVM level runs on dedicated clusters. Install the env wheel and the GeoBrix JAR as cluster libraries, or use the GeoBrix DCS image. See Choose an install path.
- Not compatible with Serverless compute (GeoBrix uses the Python level there)
- Not available on standard (shared) access mode, with or without a DCS image (GeoBrix uses the Python level there)
- Requires native GDAL libraries, which the env wheel carries (and the DCS image, from the same wheel)
- Runs on x86 for DBR 17.3 / 18 / 19, and on Graviton (arm64) for DBR 19
Databricks Runtime:
- Minimum: DBR 17.3 LTS (supported: DBR 17.3 LTS, 18 LTS and 19)
- GeoBrix is designed to work with Databricks product spatial functions (available DBR 17.1+)
Serverless Spark configuration
On Serverless compute most Spark properties are locked to platform defaults and cannot be
overridden (for example, adaptive-query-execution toggles are ignored). Serverless does, however,
accept a limited set of Spark configs. These include spark.sql.files.maxPartitionBytes, which
you can tune down (e.g. "32m") to reduce the rows/bytes per partition on file and Delta scans. This
is a useful lever for controlling memory per task in decode-heavy pipelines (each partition holds
fewer files/rows, so each task decodes less at once). See the Databricks docs on
configuring Spark properties for Serverless for the
full allowlist.
Zarr Stores
GeoBrix reads, registers and writes Zarr stores within these limits. The Zarr performance and limits page repeats them beside the measured read and write times.
- Runtimes. Databricks Runtime 19 and Serverless environment 6 (Python 3.12), at the Python level only. Databricks Runtime 17.3 and 18 and Serverless environment 5 are not supported. The JVM level reads Zarr data only as materialized GeoBrix tiles.
- Data types. Numeric types and CF times. Strings and objects are not supported. An array GeoBrix cannot decode is left out of reads. A complex array cannot be read as a table, because a table has no column for complex numbers. Read it as blocks.
- Tiles.
output="tiles"needs the coordinates to form a regular grid. Read an irregular or curvilinear grid as blocks or a table. - Codecs. The codecs that zarr-python, numcodecs and zarrs can decode. Writes use
zstdandcrc32cunless you passcodecs. A Zarr v3 array that has any codec besidesharding_indexedin its own codec list (a transpose before it, a compressor after it) is not supported. Registering the store records the array as one GeoBrix cannot decode. A default read leaves it out with a warning, and naming it invariablesraisesZarrUnsupported. Rewrite the array so thatsharding_indexedis its only outer codec, with compression and other codecs inside it. zarr-python does not write that layout. - Reading with GDAL. A GDAL before 3.13 cannot read sharded Zarr v3 stores, or ones that use the
crc32ccodec, whichgbx_zarr_writewrites by default. See Zarr in the Raster Reader. - File modes.
file_mode="external"is a preview that needs a workspace with the File type preview and compute that supportsFILEvalues; the default,"fuse", keeps path strings and works everywhere.file_mode="managed"is not available. - Cloud storage. Direct storage access (
access="direct") has been measured on AWS only. Azure and Google Cloud storage are not measured yet: passaccess="fuse"to read and write through the Volume mount, which sends no credentials.
Format Support
- OGR - focus is on named vector readers in GDAL's OGR package.
- GDAL - focus is on GeoTiff (named raster reader).
- Advanced features of some formats may have limited support.