You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[v0.11.1] - 2026-11-17
Added
Connecting points directly to network nodes (gigaspatial/processing/network/insertion.py, gigaspatial/processing/network/points.py)
Added SpatialNetwork.connect_points(points, id_column=None, connect="knn", k=1, max_distance=None, nodes=None, return_skipped=False) to add points as kind="point" nodes joined directly to existing nodes by straight-line edges (kind="point_link" to "point" nodes, kind="connection" to other nodes) without splitting existing edges, optionally restricted to candidate target nodes.
Supports connect="knn" (joining each point to its k nearest candidate nodes, dropping links beyond max_distance when set) and connect="distance" (joining each point to every candidate node within max_distance meters); points with no candidate node within max_distance are skipped with a warning (and returned when return_skipped=True).
Raises ValueError if point IDs repeat, collide with existing node IDs, or use reserved node columns (x, y, kind), and shares the unit-sphere cKDTree link helpers (check_connect, cross_set_links, within_set_links) in gigaspatial/processing/network/points.py with SpatialNetwork.from_points and SpatialNetwork.from_point_sets.
Two-set point networks and long distance tables (gigaspatial/processing/network/core.py, gigaspatial/processing/network/algorithms.py)
Added SpatialNetwork.from_point_sets(origins, targets, ...) to build an undirected network across two sets of points (connect="knn" or "distance"), with within="none" | "origins" | "targets" | "both" (and optional within_k and within_max_distance overrides) and a bipartite node column (0 for origins, 1 for targets).
Added SpatialNetwork.distance_table(origins=None, targets=None, max_distance=None, ...) returning a long ["origin", "target", "distance"] DataFrame of finite reachable pairs (excluding self-pairs), defaulting origins and targets to bipartite == 0 and 1 when present.
Optional excel extra (pyproject.toml, gigaspatial/core/io/readers.py, gigaspatial/core/io/writers.py)
Added giga-spatial[excel] (openpyxl>=3.1.0, xlrd>=2.0.0, also included in giga-spatial[all]) for reading .xlsx/.xls files and writing .xlsx files.
read_dataset and write_dataset now raise an ImportError with pip install 'giga-spatial[excel]' when the required Excel engine is missing.
HDX configuration and authentication (gigaspatial/config.py, gigaspatial/handlers/hdx.py)
Added HDX_KEY and HDX_USER_AGENT to Config, loaded automatically from .env or system environment variables.
HDXConfig (and RWIConfig) supports hdx_key and custom user_agent parameters. When an hdx_key is provided, requests are authenticated (hdx_read_only=False), bypassing anonymous rate limiting and WAF challenges. The key is masked in __repr__.
Added HDX_KEY and HDX_USER_AGENT to .env_sample and configuration docs.
Rewired EntityTable.to_distance_graph and EntityTable.to_distance_graph_with to SpatialNetwork.from_points and SpatialNetwork.from_point_sets indexed by entity e.id, fixing the bug where to_distance_graph_with used default positional RangeIndex values and silently merged row 0 of both tables into a single graph node.
Point zonal aggregation column lookup and count/collision handling (gigaspatial/generators/poi.py, gigaspatial/processing/geo.py)
Fixed PoiViewGenerator.map_zonal_stats looking up {value_column}_{stat} (e.g. "tests_sum") instead of value_column when aggregating point GeoDataFrames with a value_column, and removed the duplicate selection/rename block in the point branch.
Updated aggregate_points_to_zones so aggregation="count" uses the "point_count" output column only when value_columns is omitted; when value_columns is provided, it counts non-null values into each named column (fixing map_zonal_stats(..., stat="count", value_column=...) and ZonalViewGenerator.map_points(..., value_columns=...)).
Joined only [zone_id_column, "geometry"] in aggregate_points_to_zones and passed [["poi_id", "geometry"]] buffers in PoiViewGenerator.map_zonal_stats so zone or POI attributes sharing column names with value_columns do not collide during spatial joins or merges.
OpenCellID token redaction in logs, errors, and config repr (gigaspatial/handlers/opencellid.py)
OpenCellIDDownloader.download_data_unit now redacts query tokens (token=***) in INFO download logs instead of logging the authenticated URL.
Sanitized exceptions (including cause/context chains and request/response URLs) in OpenCellIDConfig.get_relevant_data_units_by_key and OpenCellIDDownloader.download_data_unit, and wrapped resolved units so error logs from BaseHandlerDownloader do not expose the access token.
Masked api_token and redacted any URL query tokens in OpenCellIDConfig.__repr__.
Clean-install imports and runtime dependencies (pyproject.toml, gigaspatial/core/io/readers.py, gigaspatial/fetchers/healthsites.py)
Replaced fiona.listlayers in read_kmz with pyogrio.list_layers, removing the undeclared fiona dependency that broke imports of PoiViewGenerator, handlers, generators, and gigaspatial.core.io on clean installs with geopandas>=1.0.1.
Replaced tenacity in HealthSitesFetcher._fetch_osm_country_name with a plain 3-attempt retry loop and exponential backoff (retaining escalating timeouts while failing fast on deterministic ValueError lookups).
Declared lxml>=5.0.0 (used by OpenCellIDHandler HTML parsing) and directly imported transitive dependencies (pyogrio>=0.7.2, pyproj>=3.5.0, urllib3>=1.26,<3) in [project].dependencies.
SRTM tile auto-download in LOS analysis (gigaspatial/processing/elevation/srtm_manager.py, gigaspatial/handlers/nasa/srtm.py)
Fixed TypeError: NasaSRTMDownloader.download_data_unit() missing 1 required positional argument: 'options' when LOSAnalyzer.analyze() encounters missing SRTM tiles. SRTMManager now forwards typed DownloadOptions(show_progress=False) to download_data_unit.
NasaSRTMDownloader.download_data_unit now treats options as optional (options: Optional[DownloadOptions] = None), defaulting to self.options_type(), so direct single-argument calls succeed without raising.
SRTMManager now configures the downloader with NasaSRTMConfig(base_path=self.srtm_directory) when no explicit downloader is supplied, ensuring missing tiles are downloaded into the manager's configured directory.
HDX downloads and WAF challenge detection (gigaspatial/handlers/hdx.py)
HDXDownloader verifies downloaded files have non-zero size before committing them to the data store, preventing 0-byte files from being cached when HDX returns an AWS WAF anti-bot challenge (HTTP 202).
Failed downloads retry up to 3 times with exponential backoff (time.sleep(2 ** attempt)).
If a download returns no data, HDXDownloader probes the download URL and raises a clear RuntimeError detailing the HTTP status, byte count, WAF challenge action, and suggested resolution (setting hdx_key, custom user_agent, or manual download to the target path).
HDXConfig.is_unit_available requires stored files to have non-zero content before treating them as available.
OSMRoadsHandler waits up to 3 minutes for an extract to start sending, and retries twice if the connection stalls. A stall used to fail the download after 60 seconds, while the same link succeeded in a browser.
OSM road component selection (gigaspatial/handlers/osm/roads.py, gigaspatial/handlers/osm/pbf.py)
OSMRoadsHandler now selects the largest connected component before simplifying (and preserves the raw largest component when loading cached simplified extracts), matching osmnx so a long road chain with many intermediate nodes is not discarded in favor of a smaller junction network.
Changed
Refactored flood hazard handler to CEMS (gigaspatial/handlers/cems/)
Replaced GlofasHandler with CEMSFloodHazardHandler in gigaspatial/handlers/cems/flood_hazard.py to accurately reflect that the dataset provides static Copernicus Emergency Management Service / JRC global river flood hazard maps (return periods 10–500 years), rather than real-time GloFAS river discharge forecasts.
Added domain aliases JRCFloodHazardHandler and GlofasFloodHazardHandler.
Removed GlofasHandler and gigaspatial/handlers/glofas.py.
Base storage path updated to bronze/cems/flood_hazard.
Deprecated build_distance_graph (to be removed in 0.12) in favor of SpatialNetwork.from_points and SpatialNetwork.from_point_sets; it now emits a DeprecationWarning and delegates to SpatialNetwork.
Docs now publish by minor version (0.11.x updates 0.11 and aliases latest) using mike with canonical URLs pointing to /latest/, alongside a generated robots.txt and root sitemap.
Published GLOSSARY.md at the repository root and added the Concepts > Glossary page included from it, and grouped the spatial networks concept pages under a Concepts > Spatial networks subsection.
Moved the pull request template to .github/pull_request_template.md and tailored it to GigaSpatial with checklists for public API exports, dependencies/extras, changelog, docs, glossary/ADRs, and new handlers.