Installation
GeoBrix installs as one Python wheel per runtime family, the env wheel. The env wheel runs every GeoBrix function, and carries its own GDAL, PROJ and GEOS. For most users, the env wheel is the whole install.
The GeoBrix env wheels and the JAR are not on PyPI or Maven. They are assets of the GitHub releases. The most common install downloads the env wheel once and stages it on a Volume (install 1). You can also install directly from GitHub if your network permissions allow (Install from the GitHub release).
Every env wheel ships the GeoBrix JAR inside it, so you do not need to download the JAR on its own. GeoBrix never loads it by itself. The JAR speeds up some functions at the JVM level in two places:
- as a cluster library on a dedicated cluster (install 2);
- in the Unity Catalog install folder (install 3).
To stage on a Volume, gbx.stage_jar copies the matching JAR, which gbx.register(spark) then checks.
gbx.stage_deps stages the wheel's pinned dependencies, so an install never calls PyPI
(Install without PyPI access).
How GeoBrix registers its functions
GeoBrix functions reach you in one of two ways. You can use both.
| Session registration | Unity Catalog functions | |
|---|---|---|
| How | gbx.register(spark), once in each session | gbx.uc.install(...), once, by a schema owner |
| Where the functions live | The Spark session: SQL (gbx_*), the Python API and the *_gbx readers and writers | A Unity Catalog schema: <catalog>.<schema>.gbx_* |
| Who can call them | Code in that session | Anyone granted access, on any compute that reads Unity Catalog, including SQL warehouses |
| Which functions | All of them | A subset (see Unity Catalog functions) |
| What runs them | The Python level. With the JAR as a cluster library on a dedicated cluster, also the JVM level where it is faster | Python, or SQL where that is faster. JVM-boosted functions too, when the JAR is in the install folder |
Choose an install
| Install | Runs on | You install | Then |
|---|---|---|---|
| 1. Session: the env wheel (most common) | Serverless, standard and dedicated clusters, Lakeflow declarative pipelines | The env wheel | gbx.register(spark) |
| 2. Session: the env wheel and the JAR | Clusters in dedicated access mode only | The env wheel and the JAR, as cluster libraries (or a GeoBrix container image) | gbx.register(spark) |
| 3. Unity Catalog functions | SQL warehouses, and any compute that reads Unity Catalog | Nothing, for callers. A schema owner runs gbx.uc.install once | Call <catalog>.<schema>.gbx_* |
Start with install 1. Your code is the same with or without the JAR: gbx.register(spark) picks the faster
level the compute offers. Only a dedicated cluster can load the JAR. Serverless and standard access mode run Spark
Connect, which gives GeoBrix no JVM, so install 1 is the complete install there.
These docs call the Python level lightweight and the JVM level heavyweight. See Surfaces & Levels.
Pick the env wheel for your runtime
| Runtime | Env wheel |
|---|---|
Serverless environment 6 (recommended), DBR 19, DBR 19 ML, Lakeflow declarative pipelines on the PREVIEW channel | geobrix-<version>+env6-py3-none-any.whl |
Serverless environment 5, DBR 17.3, DBR 18, Lakeflow declarative pipelines on the CURRENT channel | geobrix-<version>+env5-py3-none-any.whl |
The wheel of the other family refuses to import and names the file to install. The wheels are assets of the GitHub releases, not PyPI packages.
1. Install for a session: the env wheel
Runs on: Serverless, clusters in standard or dedicated access mode, and Lakeflow declarative pipelines, on x86 and ARM.
- Download the env wheel for your runtime from the GeoBrix releases.
- Stage it on a Volume your compute can read, for example
/Volumes/<catalog>/<schema>/<volume>/geobrix/. - Install it in a notebook cell, then restart Python:
%pip install "geobrix @ file:///Volumes/<catalog>/<schema>/<volume>/geobrix/geobrix-<version>+env6-py3-none-any.whl"
dbutils.library.restartPython()
from databricks.labs import gbx
# The gbx_* SQL functions and the *_gbx readers and writers, once per session
gbx.register(spark)
# Register, load raster, apply RasterX
from databricks.labs import gbx
from databricks.labs.gbx.rasterx import functions as rx
gbx.register(spark)
rasters = spark.read.format("raster_gbx").load("/Volumes/main/default/geobrix_samples/geobrix-examples/nyc/sentinel2/nyc_sentinel2_red.tif")
rasters.select(rx.rst_boundingbox("tile").alias("bbox"), rx.rst_width("tile"), rx.rst_height("tile")).limit(3).show()
If the query returns the bounding box, width and height, the install is complete. gbx.register(spark) registered every gbx_*
SQL function and every *_gbx reader and writer for this session. A %sql cell in the same notebook can call them.
Use the +env5 file on Serverless environment 5, DBR 17.3 and DBR 18. To install for every notebook on a cluster,
add the same Volume path as a cluster-scoped library
instead of %pip.
Write the requirement as "geobrix @ file:///Volumes/…/geobrix-<version>+env6-py3-none-any.whl", in quotes, as one
argument. To add an extra, put it after the name: "geobrix[vizx] @ file:///…". Do not append it to the path
('/Volumes/…/geobrix-<version>+env6-py3-none-any.whl[vizx]'). On Serverless, %pip keeps the quotes in its
requirements file, and pip then reads [vizx] as part of the file name. The error is "Expected package name at
the start of dependency specifier."
For extras, jobs, pipelines and installs straight from GitHub, see Install options.
2. Install for a session: the env wheel and the JAR
Runs on: clusters in dedicated access mode only: x86 on DBR 17.3, 18 or 19, or Graviton (arm64) on DBR 19.
Why: some functions run faster at the JVM level. Your code does not change, and every other function still runs in Python. The JVM uses the wheel's GDAL, PROJ and GEOS, so nothing else is installed.
- Stage the env wheel on a Volume:
+env5for DBR 17.3 and 18,+env6for DBR 19. - Stage the JAR from that wheel with
gbx.stage_jar. Run it in any notebook that has the same env wheel installed:
from databricks.labs import gbx
# Copy the JAR this env wheel carries to a Volume folder (with a .sha256 file beside it)
gbx.stage_jar("/Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/jar")
# Then add the printed path as a cluster library on a dedicated cluster and restart the cluster.
- Create a cluster in dedicated access mode. Under Libraries, install the wheel (Python whl) and the JAR (JAR) from their Volume paths.
- Start the cluster, attach a notebook, and register:
gbx.register(spark), the same call as install 1. - Verify the JVM level. Each registered name maps to the level it runs at:
from databricks.labs import gbx
# Register the functions and the lightweight readers
registered = gbx.register(spark)
# Each name maps to the level it runs at
print(len(registered), "functions registered")
print("gbx_rst_boundingbox runs at level", registered["gbx_rst_boundingbox"].level)
# Read the signature of one function
spark.sql("DESCRIBE FUNCTION gbx_rst_boundingbox").show(truncate=False)
<N> functions registered
gbx_rst_boundingbox runs at level L1
+------------------------------------+
|function_desc |
+------------------------------------+
|Function: gbx_rst_boundingbox |
|... |
+------------------------------------+
If gbx_rst_boundingbox shows a level and a signature, the install is complete. register also prints one line
for each function that falls back to Python, with the reason.
What gbx.stage_jar does:
- It copies the JAR to the folder and writes a
.sha256file beside it. - It checks that the JAR matches the wheel's version and the hash in the wheel's
RECORD. - It refuses a folder that already holds another GeoBrix JAR, because a cluster must load only one.
- It prints the next step and returns the staged path. Pass
overwrite=Trueto copy the JAR again.
Keep these rules in mind:
- One JAR runs on DBR 17.3, 18 and 19. Install only one GeoBrix JAR on a cluster.
- A running cluster cannot load a JAR. Restart the cluster after you add or change the JAR library.
gbx.register(spark)checks that the JAR and the wheel are the same build. A mismatched JAR is not used.- On DBR 19 you can install the wheel with
%pipin the notebook and keep only the JAR as a cluster library.
Or use a container image. A GeoBrix image for Databricks Container Service starts a dedicated DBR 19 cluster. The env6 wheel and the JAR are already in place, so steps 1 to 3 are not needed. There is one image tag for Graviton (arm64) and one for x86 (amd64).
3. Install the Unity Catalog functions
Runs on: SQL warehouses, and any compute that reads Unity Catalog. Callers install nothing and run no
register. They call a function by its three-part name, such as <catalog>.<schema>.gbx_bng_pointascell.
A schema owner installs the functions once:
- Stage the env6 wheel on a Volume folder.
- Run
gbx.uc.installfrom a notebook on Serverless environment 6 or DBR 19:
from databricks.labs import gbx
# Once, from a Serverless environment 6 or DBR 19 notebook.
# The folder holds the env 6 wheel of the same version.
gbx.uc.install("<catalog>", "<schema>", "/Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/env6")
- Grant callers access to the schema's functions.
- Run it again after each GeoBrix upgrade.
The functions run as Python, or as SQL where that is faster. If the install folder also holds the JAR of the same version, the install supplies the JVM-boosted functions as well, with the same answers. They are verified on SQL warehouses only; leave the JAR out of the folder to keep every function in Python. Unity Catalog functions lists the functions and the permissions the owner needs.
Install options
Supported Databricks Runtimes
| DBR | Ubuntu | Spark | Python | Scala | Java |
|---|---|---|---|---|---|
| 17.3 | 24.04 | 4.0.0 | 3.12.3 | 2.13.16 | 17 |
| 18 | 24.04 | 4.1.0 | 3.12.3 | 2.13.16 | 21 |
| 19 | 24.04 | 4.2.0 | 3.12.3 | 2.13.18 | 21 |
On Serverless, use environment 6: set the environment version to 6 in the Environment side panel, or
environment_version: "6" on a job. GeoBrix uses the PySpark that the runtime provides. Installing GeoBrix never
downloads PySpark.
Feature extras
Add extras in brackets after the name, on the same line:
"geobrix[stac,vizx] @ file:///Volumes/…/geobrix-<version>+env6-py3-none-any.whl".
| Extra | What it adds | Wheels |
|---|---|---|
[stac] | The STAC client (pystac-client, planetary-computer) | env5, env6 |
[vizx] | Visualization (matplotlib, mapclassify, anywidget, tippecanoe, imageio; the wheel carries geopandas and contextily) | env5, env6 |
[zarr] | Zarr transactional stores (zarr, numcodecs, zarrs, tensorstore, obstore) | env6 |
[databricks] | The Databricks SDK, for the sample-data uploads | env5, env6 |
Overture and NASA Earthdata are not extras. Install their packages as a separate step after the wheel, only if you use them:
- Overture CLI, the fast path of Overture Maps:
%pip install "overturemaps>=1.0.2,<2". It raisesclickto 8.5 andtqdmto 4.70 or later, and installs PyPI'sshapely, which GeoBrix does not use. The Overture downloader also works without the CLI, through the STAC catalog. - Earthdata (NASA Earthdata / EMIT):
%pip install "earthaccess>=0.11,<1" "botocore<1.44.0". It raisesfsspecfrom 2023.5.0 to a current release.
Install from the GitHub release
When your compute can reach github.com, you can skip the download and the Volume. Point pip at the release asset, in the same quoted named form:
%pip install "geobrix @ https://github.com/databrickslabs/geobrix/releases/download/v<version>/geobrix-<version>+env6-py3-none-any.whl"
dbutils.library.restartPython()
A workspace that restricts outbound network access (for example, Serverless egress controls) can block GitHub. Install from a Volume in that case.
Serverless jobs and Lakeflow pipelines
Add the wheel as a dependency line of the job's environment. Write it without spaces around @:
geobrix@https://github.com/databrickslabs/geobrix/releases/download/v<version>/geobrix-<version>+env6-py3-none-any.whl
The environment installs its dependencies with an unquoted %pip install, so a space around @ splits the
requirement and the install fails. Use the wheel of the job's environment version: +env5 for 5, +env6 for 6.
A Lakeflow pipeline's dependency lines follow the same rule. A pipeline runs on the Databricks Runtime of its
channel, not on a Serverless environment version. Use +env5 on the CURRENT channel (DBR 18) and +env6 on
PREVIEW (DBR 19). See Lakeflow SDP.
Register only some functions
Registering every function takes about 45 seconds on Serverless. To register only the functions you call, pass
their names: gbx.register(spark, only=["rst_avg", "bng_cellarea"]). Names may be SQL names or short names. The
Python API also registers a function on its first call.
Reinstall the same version on Serverless
To load fresh wheel bytes of the same version during a session, run this near the top of the notebook:
%pip install --force-reinstall --no-deps "geobrix @ file:///Volumes/<catalog>/<schema>/<volume>/geobrix/geobrix-<version>+env6-py3-none-any.whl"
%pip install "geobrix @ file:///Volumes/<catalog>/<schema>/<volume>/geobrix/geobrix-<version>+env6-py3-none-any.whl"
dbutils.library.restartPython()
Keep --no-deps with --force-reinstall. Without it, pip reinstalls the runtime's preinstalled packages and
Serverless fails the cell. The second, plain install adds back any dependency the first one skipped. Put your
extras on that second line.
What the install changes on the runtime
The env wheel keeps the runtime's preinstalled packages, with these exceptions:
- Every install upgrades
idna(the runtime ships 3.7 or 3.11) and addshttpx2andhttpcore2.rio-tileruses them to read remote rasters, and they needidna3.18 or later. - On Serverless environment 5 and DBR 17.3 / 18, it also upgrades
anyioandtyping_extensions(rio-tiler9 needs 4.13 or later). - On DBR 17.3, it also upgrades
h11to 0.16 (the fix for CVE-2025-43859), andhttpcorefrom 1.0.2 to 1.0.9, because 1.0.2 does not accept thath11. - On those env5 runtimes,
[stac]and[vizx]also raiserequestsfrom 2.32.3 to the latest 2.32 release, which fixes CVE-2024-47081.
Databricks may show a one-time "a core package changed" notice. It is harmless: the Python restart after the install picks up the new versions.
The wheel also carries rasterio, pyogrio, pyproj, shapely, netCDF4, GDAL's own osgeo and the GeoBrix
Rust module, all built against its GDAL. A process runs one GDAL. One
wheel covers the whole library: RasterX (databricks.labs.gbx.rasterx), GridX (databricks.labs.gbx.gridx.<grid>),
VectorX (databricks.labs.gbx.vectorx) and pmtiles.
JVM settings for install 2
- netCDF-4 filters. Reading zstd, blosc or bzip2 netCDF-4 needs
HDF5_PLUGIN_PATHin the cluster's environment variables. Without it the result is a silent NULL. The variable also reaches other HDF5 libraries on the cluster. See Compressed netCDF-4 variables. - HTTP. Leave
GDAL_HTTP_VERSIONunset. See Remote reads. - Native copy location. On first use, each node copies the wheel's native libraries to local disk, about 130 MB
per GeoBrix build. The JVM loads that copy, so a finished notebook's Python environment cannot remove them. The
copy goes to
/local_disk0/geobrix/nativewhen no other user owns/local_disk0, else to/tmp/geobrix/native. Each candidate needs three times the copy's size free. To use one folder only, setspark.databricks.labs.gbx.native.copy.dirin the cluster's Spark config. An existing folder must belong to the JVM's user, with no access for group or others (mode 0700). Set it tooffto load from the wheel.
Install without PyPI access
Some workspaces cannot reach PyPI, and on some the Unity Catalog sandbox cannot either. An install that needs PyPI then fails. The env wheel lists every wheel it needs, pinned and hashed, for each architecture. Download those wheels once, stage them on a Volume, then install from the Volume.
Download the wheels
Run the download on any machine with PyPI access and Python 3.12. It needs the env wheel installed, and no GeoBrix checkout:
# On a machine with PyPI access and Python 3.12
pip install geobrix-0.6.0+env6-py3-none-any.whl
# The wheels for both architectures, the env wheel beside them, and the Unity Catalog pins
python -m databricks.labs.gbx.stage deps --uc \
--wheel geobrix-0.6.0+env6-py3-none-any.whl --out gbx-wheels
The command does this:
- It downloads binary wheels only, for x86_64 and aarch64, into
<out>/x86_64/and<out>/aarch64/. - It checks each wheel against the sha256 its list pins.
- It proves for each architecture that the folder covers the install offline (
pip install --dry-run --no-index). - It copies the env wheel into the folder and writes
wheels.txt, the sha256 of each file.
The folder leaves out the packages the runtime already has, such as numpy, pandas, pyarrow and scipy. Options:
--arch x86_64or--arch aarch64downloads one architecture. The default is both.--extras zarr,vizxadds the wheels of those extras.--ucalso checks the Unity Catalog pins,h3andquadbin.
The same steps run from Python, in databricks.labs.gbx.stage:
download_deps(out, arches=None, extras=(), uc=False, wheel=None)downloads and checks the wheels. It returns the path ofwheels.txt.check_offline(folder, arch, targets, base)checks thattargetsinstall fromfolderalone. It returns thename==versionlines pip would install.dep_pins(arch, extras=())returns each wheel an install needs onarch, beyond the runtime's own packages. Each maps a name to its version and sha256.uc_pins()returns the pins of the Unity Catalog function environments,h3andquadbin.read_wheels_txt(folder)returns the sha256 and relative path of each file inwheels.txt.install_lines(vol_dir, wheel, arches, extras=())returns the install linesgbx.stage_depsprints for a staged folder.
Stage the wheels on a Volume
gbx.stage_deps copies the folder to a Volume folder:
from databricks.labs import gbx
# Copy the folder to a Volume; each file's sha256 is checked before and after the copy
gbx.stage_deps("/Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/env6", src="gbx-wheels")
On Databricks compute it copies through the Volume's mount. Elsewhere it uses the Databricks SDK with its default authentication. It checks each file's sha256 before and after the copy. It refuses a folder that holds another GeoBrix wheel. It prints the install lines for that folder.
Install from the Volume
Use the folder of your compute's architecture. A Graviton cluster is aarch64. In a notebook:
%pip install --no-index \
--find-links /Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/env6/x86_64 \
/Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/env6/geobrix-0.6.0+env6-py3-none-any.whl
In a Serverless environment, add these lines to the environment's dependencies, one entry each:
--no-index
--find-links=/Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/env6/x86_64
/Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/env6/geobrix-0.6.0+env6-py3-none-any.whl
On a cluster, add requirements-<arch>.txt from the Volume folder as a cluster library. gbx.stage_deps writes one
for each architecture.
For the Unity Catalog functions, pass deps="volume":
from databricks.labs import gbx
# The folder holds the env 6 wheel and the x86_64/ and aarch64/ folders gbx.stage_deps made
gbx.uc.install(
"<catalog>",
"<schema>",
"/Volumes/<catalog>/<schema>/<volume>/geobrix/0.6.0/env6",
deps="volume",
)
The functions install from the Volume folders with --no-index. wheels_dir names the folder gbx.stage_deps
filled; it defaults to volume_dir. Pass arch="aarch64" or arch="x86_64" to name the sandbox's folder. By
default the install lists both, and pip takes the wheels that fit. Before any statement, the install checks that each
folder holds every wheel it needs. A missing wheel stops it with a Fix:.
Use bare /Volumes/... paths. A dbfs:/Volumes/... path is refused.
Call GeoBrix from Scala or Java
Most users can skip this section. It is for code on the JVM, in Scala or Java, that calls GeoBrix functions.
gbx.register(spark) registers the SQL functions from Python, in one Spark session. JVM code on the same session
calls them by SQL name. The JAR adds faster implementations for many functions, but it registers no SQL names.
Choose the route by where the code runs:
| Route | Compute | Functions |
|---|---|---|
| Python entry point, Scala body | A job task on a dedicated cluster | All of them. A table function cannot go in a select list, as described below. |
| A notebook that mixes languages | A notebook on dedicated compute | All of them |
| Unity Catalog functions | Any compute that reads Unity Catalog, including Serverless JAR tasks | The Unity Catalog subset |
Python entry point, Scala body
A job that has no notebook makes its first task a Python task. The task registers the functions, then calls your Scala object with the same session.
- Create the job cluster in dedicated access mode.
- Install the env wheel, your JAR and the GeoBrix JAR as libraries of the task. The GeoBrix JAR is optional: add it only if you want the JVM implementations.
- Write the Python task:
from databricks.labs import gbx
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
# Register the functions in this session, then run the Scala code on the same session.
gbx.register(spark)
spark._jvm.com.example.geo.JvmJobBody.run(spark._jsparkSession, "main.geobrix.cells")
- Write the Scala body. It calls the functions by name and registers nothing. Name the package and object as the Python task calls them:
package docs.tests.scala.api
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.functions.{call_function, col}
// The Scala body of a job whose entry point is a Python task. The Python task ran
// gbx.register(spark) and passed spark._jsparkSession, so every gbx_ name resolves here.
object JvmJobBody {
def run(spark: SparkSession, cellTable: String): Unit = {
// A scalar, by SQL name
spark.sql("SELECT gbx_bng_cellarea('TQ3080') AS area_m2").show()
// The same function in the DataFrame API
spark.table(cellTable)
.select(call_function("gbx_bng_cellarea", col("cell")).alias("area_m2"))
.show()
}
}
What the Scala code can call, checked on a dedicated cluster on DBR 17.3:
- A scalar function, with
spark.sql,functions.exprorcall_function. - An aggregate function, in a
GROUP BY. - A table function, in
SELECT * FROM gbx_x(...)and inFROM t, LATERAL gbx_x(...). - A
*_gbxdata source, such asspark.read.format("raster_gbx").
A table function at the Python level does not resolve in a select list: SELECT gbx_x(...) and
call_function("gbx_x", ...) fail with UNRESOLVED_ROUTINE. Use the FROM or LATERAL form. See
Surfaces & Levels.
spark._jvm and spark._jsparkSession exist only where Python and the JVM share a process, which is a dedicated
cluster. Standard access mode and Serverless run Spark Connect, which gives Python no access to the JVM. Use the
Unity Catalog route there.
A notebook that mixes languages
On dedicated compute, run gbx.register(spark) in a Python cell. Cells in other languages use the same Spark
session, so a %sql or %scala cell calls the functions by name.
Serverless notebooks have no Scala cells.
Unity Catalog functions
Install the functions once with gbx.uc.install, as in install 3. The job then calls a three-level
name with spark.sql. This route needs no registration and no Python task.
// No registration. An admin ran gbx.uc.install("main", "geobrix", ...) once.
// A three-level name always runs the Unity Catalog function.
val ring = spark.sql("SELECT main.geobrix.gbx_bng_kring('TQ3080', 1) AS cells")
ring.show(truncate = false)
The Scala DataFrame API
The com.databricks.labs.gbx.<package>.functions objects hold Column wrappers, such as
rasterx.functions.rst_boundingbox. The packages are rasterx, gridx.bng, gridx.h3, gridx.custom and
vectorx.
A wrapper calls the function by its SQL name, so the session must resolve that name. Register in Python first, or put a schema that holds the Unity Catalog functions on the path. See Names and the path.
import com.databricks.labs.gbx.rasterx.{functions => rx}
import org.apache.spark.sql.functions._
// The wrapper calls gbx_rst_boundingbox by name. A Python step ran gbx.register(spark)
// in this session, so the name resolves.
val boxes = spark.table("main.geobrix.rasters")
.select(col("path"), rx.rst_boundingbox(col("tile")).alias("bbox"))
boxes.show()
A function whose JVM implementation was removed has no wrapper. Call it with call_function("gbx_<name>", …).
Tasks of a job do not share a session
Each task of a job has its own session. Functions registered in a Python task are not visible to a later JAR task. Put the Scala call in the same Python task, as above.
Upgrading from GeoBrix 0.5.x
- Install lines. 0.5.x installed with a runtime extra:
geobrix[light_env6],[light_env5],[light_dbr17],[light_dbr18]or[light_dbr19], or their_allforms. In 0.6.0 those extras are gone: install the env wheel for the runtime, with no runtime extra.- Replace
"geobrix[light_env6,vizx] @ file:///Volumes/…/geobrix-<version>-py3-none-any.whl"with"geobrix[vizx] @ file:///Volumes/…/geobrix-<version>+env6-py3-none-any.whl". - Use
+env5in place oflight_env5,light_dbr17andlight_dbr18. - An
_allform becomes[stac,vizx], or[stac,vizx,zarr]on the env6 wheel. - An old install line fails at resolution (pip:
ResolutionImpossible) and names the env wheel to install. It never installs something else.
- Replace
- GPU extras. The 0.5.x extras
photogrammetry_gpu_env5,models_gpu_env5andgpu_env5_allmap to the+env6wheel, because the UDF workers of the Serverless GPU runtime run environment 6. A driver-only GPU step, such as dense MVS withpycolmap-cuda12, can stay on the+env5wheel with no extra. Install the GPU packages as a separate step after the wheel. - Init script. 0.5.x installed native GDAL with a cluster init script. Remove that init script from the cluster, and do not install the GDAL bundle. A system GDAL beside a 0.6.0 wheel puts two GDAL stacks in one cluster. See Breaking changes in 0.6.0.
- The JAR. In 0.5.x the JAR was only a separate release asset. In 0.6.0 it also ships inside the env wheel:
stage it with
gbx.stage_jar(install 2), which checks that it matches the wheel. - Registration. The per-package
register()functions are removed.gbx.register(spark)replaces them.
See the migration guide for every change.
To stay on 0.5.x, use the assets of the v0.5.2 release.
They include the init script, the GDAL bundle and geobrix-docs-0.5.2.zip, the docs for that release.
Next Steps
- Follow the Quick Start Guide to begin using GeoBrix
- Explore the Functions documentation
- See how GeoBrix picks an implementation in Surfaces & Levels
- Moving from 0.5.x? Read the migration guide