Skip to content

GeoBrix v0.5.2

Choose a tag to compare

@mjohns-databricks mjohns-databricks released this 07 Oct 19:02
77202e3

GeoBrix v0.5.2

GeoBrix 0.5.2 brings LiDAR and photogrammetry to the library: a lidar_gbx LAS/LAZ reader and writer, point-cloud DSM / CHM surface functions, an exif_gbx image-telemetry reader, raster and distributed H3 viewshed pipelines, and a new model-backed gbx.models package whose first capability is GeoSAM GPU object segmentation. It also ships a new end-to-end Wireless Coverage example (LiDAR → surfaces → H3 → tower siting) in both notebook and Lakeflow-pipeline flavors, preserves ESRI/OGC CRS authority end-to-end, and brings the light tier's ZSTD compression to parity with heavy. Full change list: Release Notes → What's new in v0.5.2.

Highlights

  • LiDAR point clouds — lidar_gbx reader and writer. A Spark DataSource reads LAS/LAZ into a DataFrame (metadata one-row-per-file or points one-row-per-point, with classFilter / returnFilter / decimate / dimensions options), and the matching writer outputs sharded .laz (one per partition, optional singleFile / merge). Lightweight and Serverless-safe; full-density (decimate=1) reads don't stall. See LiDAR Reader · LiDAR Writer.
  • Point-cloud surface modelling — DSM / CHM / isobands. gbx_rst_binpoints (plus the streaming _agg and the bounded rx.bin_points_tiled helper) bins x/y/z points into a Float32 DSM; gbx_rst_chm warps a DSM onto a DEM and subtracts for a Canopy Height Model; gbx_rst_isoband reclassifies a band into one WKB polygon per contiguous patch. Both tiers. See Raster Functions.
  • Geospatial Models — new gbx.models package (GeoSAM). Model-backed raster inference (light-only). segment_raster(...) chips a raster, fans automatic-mask object segmentation across one or many GPUs, and merges polygon fragments across tile seams into one polygon per real-world object; build_geosam_pyfunc / register_to_unity_gateway / create_endpoint register and serve it behind a GPU Model Serving endpoint. Targets the Serverless GPU AI Runtime env 5 (torch 2.10.0, CUDA 12) via geobrix[models_gpu_env5]. See Geospatial Models · GeoSAM · Serving.
  • Viewsheds — raster and distributed H3. rst_viewshed_towers runs a per-tower raster viewshed over a tiled DSM via bytes-free VRTs — no shuffle, no FUSE read-back. h3_viewshed_towers is the H3-native sibling: exact h3_los_visible line-of-sight per tower in cell space, fanned one-tower-per-task so it scales on Serverless and classic alike. Python-only, lightweight. See GridX Functions.
  • Wireless Coverage example (new). An end-to-end LiDAR-to-tower-siting walkthrough over San Francisco — DSM / TIN-DTM / CHM → H3 resolution 10 → ranked candidate sites via distributed H3 line-of-sight — shipped as a notebook series and a production Lakeflow Declarative Pipeline (land → pipeline → siting → validate). Lightweight, Serverless. See Wireless Coverage.
  • EXIF/GPS reader — exif_gbx. Reads per-image EXIF/GPS telemetry from drone/camera JPEG/TIFF into a DataFrame (one row per image: geom_wkb POINT in WKB, altitude, camera model, orientation); metadata (header-only, no pixel decode) and qc (adds sharpness / brightness) modes. See EXIF Reader.
  • Land cover + contrast stretch. rst_land_cover classifies an RGB(+NIR) tile into a single-band class-mask (spectral / kmeans / hybrid); gbx_rst_percentile_stretch does a per-band percentile contrast stretch to 8-bit — a common display/COG-prep step. See Raster Functions.
  • GeoSAM capstone on the Orthomosaic example. The new 03_segment notebook turns the series' published orthomosaic COG into georeferenced object polygons — in-notebook across 1..N GPUs, or behind a served Unity Gateway endpoint. See Orthomosaic Photogrammetry.
  • Geometry-aware grid functions. GeometryCollection inputs are now processed as the union of their members (polygon/line/point), and large-polygon geomkring / geomkloop on quadbin / BNG / custom now scale with boundary length rather than area (10–100× faster for large polygons; identical cell sets), with the heavyweight tier matching the lightweight boundary band for non-rectangular polygons.

Behavior changes

No function signatures were removed, but a few outputs change at the byte/attribute level:

  • CRS authority preserved. srid() on a non-EPSG raster now returns the ESRI/OGC authority code (previously None), and the crs column carries the canonical authority string. Compare CRS with crs_equal, not string equality; use authority_srid_of to extract an integer SRID.
  • Light-tier ZSTD predictor. Light COG/GTiff ZSTD re-encodes now apply the horizontal-differencing predictor (3 for float, 1 for 8-bit, 2 for other integer types), matching the heavyweight tier. Re-encoded files are byte-different (typically smaller); decoded pixels are unchanged — refresh any byte-for-byte reference comparisons.
  • ESRI-identity reproject. An identity rst_transform between two equal ESRI-authored CRS now short-circuits (ZSTD re-encode vs. warp path); output is content-equivalent but may differ in bytes.
  • NetCDF spatial_epsg. For a non-EPSG CRS the NetCDF writer stores the ESRI code in the legacy spatial_epsg attribute; take the authoritative CRS from crs_canonical / crs_wkt.

Install

Stage the wheel (and the JAR, for the heavyweight tier) in a Unity Catalog Volume, then install the runtime-pinned extra — on Serverless environment 6:

%pip install "geobrix[light_env6] @ file:///Volumes/<catalog>/<schema>/<volume>/geobrix-0.5.2-py3-none-any.whl"

Other runtimes: [light_env5] (Serverless env 5), [light_dbr17] / [light_dbr18] / [light_dbr19] (classic DBR 17.3 / 18 / 19). The heavyweight tier adds the JAR plus the GDAL init script; GPU models use [models_gpu_env5]. See Installation.

Assets

  • geobrix-0.5.2-jar-with-dependencies.jar — heavyweight Scala JAR
  • geobrix-0.5.2-py3-none-any.whl — lightweight Python wheel
  • geobrix-docs-0.5.2.zip — offline documentation site
  • geobrix-gdal-artifacts-v0.5.2-noble.tar.gz (+ .sha256) — GDAL native bundle (Ubuntu Noble)
  • geobrix-gdal-init.sh — cluster GDAL init script

Full Changelog: v0.5.1...v0.5.2