Skip to content

Conversation

@ronitjadhav
Copy link
Collaborator

Description

This PR introduces the initial phase of a new GeoPackage-based data import workflow for ThinkHazard, enabling administrative divisions and Hazard Scores to be loaded directly from a GeoPackage file via the admin interface.

Note: Currently only reads and processes the GeoPackage to extract administrative boundaries (ADM0/ADM1/ADM2). Database and hazard score import will be implemented in later steps.

Admin Interface

  • Added "Import administrative division from GeoPackage" option in admin panel
  • File upload capability for .gpkg files
  • Integrated with existing task queue system

GeoPackage Processor

  • New GeopackageImporter class that reads ADM2 district-level boundaries
  • Automatically generates ADM1 (provinces) and ADM0 (countries) via spatial dissolve
  • Preserves hazard score columns using max aggregation

Screenshots

image

Next Steps

  1. Validating the geopackage file
  2. Administrative division import into database
  3. Hazard score import

@ronitjadhav ronitjadhav changed the title Add GeoPackage Upload [WIP] Add GeoPackage Upload Dec 1, 2025
@arnaud-morvan arnaud-morvan changed the title [WIP] Add GeoPackage Upload Add GeoPackage Upload Dec 18, 2025
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.

3 participants