Repository navigation
GeoBrix v0.5.2
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_gbxreader and writer. A Spark DataSource reads LAS/LAZ into a DataFrame (metadataone-row-per-file orpointsone-row-per-point, withclassFilter/returnFilter/decimate/dimensionsoptions), and the matching writer outputs sharded.laz(one per partition, optionalsingleFile/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_aggand the boundedrx.bin_points_tiledhelper) bins x/y/z points into a Float32 DSM;gbx_rst_chmwarps a DSM onto a DEM and subtracts for a Canopy Height Model;gbx_rst_isobandreclassifies a band into one WKB polygon per contiguous patch. Both tiers. See Raster Functions. - Geospatial Models — new
gbx.modelspackage (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_endpointregister and serve it behind a GPU Model Serving endpoint. Targets the Serverless GPU AI Runtime env 5 (torch 2.10.0, CUDA 12) viageobrix[models_gpu_env5]. See Geospatial Models · GeoSAM · Serving. - Viewsheds — raster and distributed H3.
rst_viewshed_towersruns a per-tower raster viewshed over a tiled DSM via bytes-free VRTs — no shuffle, no FUSE read-back.h3_viewshed_towersis the H3-native sibling: exacth3_los_visibleline-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_wkbPOINT in WKB, altitude, camera model, orientation);metadata(header-only, no pixel decode) andqc(addssharpness/brightness) modes. See EXIF Reader. - Land cover + contrast stretch.
rst_land_coverclassifies an RGB(+NIR) tile into a single-band class-mask (spectral/kmeans/hybrid);gbx_rst_percentile_stretchdoes 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_segmentnotebook 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/geomkloopon 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 (previouslyNone), and thecrscolumn carries the canonical authority string. Compare CRS withcrs_equal, not string equality; useauthority_srid_ofto 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_transformbetween 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 legacyspatial_epsgattribute; take the authoritative CRS fromcrs_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 JARgeobrix-0.5.2-py3-none-any.whl— lightweight Python wheelgeobrix-docs-0.5.2.zip— offline documentation sitegeobrix-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