Skip to content

Add h3 boundries handling - #49

Merged
dgraf-gh merged 29 commits into
mainfrom
add-h3-boundaties-handling
Jul 28, 2026
Merged

Add h3 boundries handling#49
dgraf-gh merged 29 commits into
mainfrom
add-h3-boundaties-handling

Conversation

@dgraf-gh

Copy link
Copy Markdown
Contributor

No description provided.

dgraf-gh added 29 commits July 11, 2026 08:58
- Integrated `StandaloneBoundaryImporter` service to enable standalone administrative boundary imports.
- Added H3 (Uber H3) dependency for high-resolution geospatial indexing.
- Updated import logic to process boundaries from PBF files and store outputs in RocksDB databases.
- Enhanced geometry processing with support for buffering, simplification, and H3 polygon-to-cell mapping.
- Added `SimplificationConfiguration` to `PaikkaConfiguration` to support configurable tolerances for geometry simplification.
- Replaced hardcoded tolerance values in `GeometrySimplificationService` with values from configuration.
- Updated tests to inject `PaikkaConfiguration` into `GeometrySimplificationService`.
- Adjusted test properties and application configuration files to define default tolerance values.
… logging

- Introduced SLF4J logger to `StandaloneBoundaryImporter` for comprehensive logging.
- Added detailed geometry validation with repair logic for invalid geometries.
- Replaced `polygonToCellsH3` with optimized `processCellsH3Stream` for better scalability.
- Improved handling of simplified geometries and batch processing for H3 cells.
- Made simplification tolerances configurable in `application-dev.properties`.
… update default logging level to ERROR in development config
- Added unit tests for boundary lookup with additional locations (e.g., Pölzig).
- Adjusted RocksDB options to remove read-only constraint for enhanced flexibility.
- Updated assertions to verify total cell counts and boundary hierarchy integrity.
…nd upload

- Introduced `scripts/update-h3.sh` to automate H3 bundle generation.
- Supports configurable options for memory, threads, and input paths.
- Includes filtering, data import, bundling, and optional upload to R2 storage.
- Enhanced error handling and directory preparation for seamless execution.
- Added `prepare-boundaries` command with symlink and execution setup in Dockerfile.
- Updated `update-h3.sh` to rename filtered PBF output and disable Docker image pull.
- Fixed `filter_boundaries.sh` to correct typo in description.
- Simplified `import-boundaries.sh` by removing unnecessary cleanup steps.
@dgraf-gh
dgraf-gh merged commit 4cae5a8 into main Jul 28, 2026
1 check passed
@dgraf-gh
dgraf-gh deleted the add-h3-boundaties-handling branch July 28, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant