How ojaswijoshi13/rakshakgis works
RakshakGIS is a disaster-risk decision platform for authorities: operational users inspect village and GIS data, assess multi-hazard risk and red zones, then plan and review relocation, with scenario simulation supporting what-if analysis. The frontend presents GIS and operational workflows; the FastAPI backend exposes them alongside risk, relocation, ingestion, telemetry, and governance capabilities. The README documents the REST/GeoJSON boundary and data modes. Some subsystem routes and runtime wiring are unsampled, so those links are omitted or marked unverified rather than inferred from filenames.
Main entry points: scenarios/engine.py Scenario Simulator · routes.py REST API · computation/engine.py Risk Computation · risk.py Risk and Red Zones
Components 26
User Workbench
- GIS Explorer
frontend/src/app/gis/page.tsx - Village Profile
frontend/src/app/villages/page.tsx - Operations Console
frontend/src/app/operations
API and Operations
- REST API
backend/app/api/routes.py - Risk and Red Zones
backend/app/api/v1/risk.py - Relocation Services
backend/app/api/v1/relocation.py - Scenario Services
backend/app/api/v1/scenarios.py - Governance Workflows
backend/app/api/v1/governance.py - Reports
backend/app/api/v1/reports.py
Risk Intelligence
- Risk Computation
backend/app/core/risk/computation/engine.py - Risk Classification
backend/app/core/risk/classification/engine.py - Vulnerability Scoring
backend/app/core/risk/vulnerability/engine.py - Red Zone Analysis
backend/app/core/risk/red_zone/engine.py - Dynamic Red Zones
backend/app/core/risk/red_zone/dynamic_engine.py - Relocation Priority
backend/app/core/risk/relocation_priority/engine.py
Relocation Planning
- Site Suitability
backend/app/core/relocation/suitability/engine.py - Site Capacity
backend/app/core/relocation/capacity/engine.py - Relocation Matching
backend/app/core/relocation/matching/engine.py - Evacuation Routing
backend/app/core/relocation/routing/engine.py - Scenario Simulator
backend/app/core/scenarios/engine.py
Data and Configuration
- Regional Profiles
backend/app/core/profiles/models.py - Hazard Providers
backend/app/data/providers/contracts.py - Data Ingestion
backend/app/data/ingestion/pipeline.py - Spatial Database
backend/app/core/database.py - Live Telemetry
backend/app/core/telemetry/service.py
Other components
- Disaster Officer
Connections 32
- Disaster Officer → GIS Explorer: explores map
README.md - Disaster Officer → Village Profile: reviews villages
README.md - Disaster Officer → Operations Console: manages operations
README.md - GIS Explorer → REST API: requests REST/GeoJSON
README.md - Village Profile → REST API: requests REST/GeoJSON
README.md - Operations Console → REST API: uses REST
- REST API → Risk and Red Zones: routes requests
- REST API → Relocation Services: routes requests
- REST API → Scenario Services: routes requests
- Risk and Red Zones → Risk Computation: invokes
- Risk Computation → Risk Classification: classifies result
backend/app/core/risk/classification/engine.py - Risk Computation → Vulnerability Scoring: uses factor scores
- Risk and Red Zones → Red Zone Analysis: invokes
- Risk and Red Zones → Dynamic Red Zones: invokes
- Risk and Red Zones → Relocation Priority: invokes
- Relocation Services → Relocation Matching: invokes
- Relocation Matching → Site Suitability: evaluates sites
backend/app/core/relocation/matching/engine.py - Relocation Matching → Site Capacity: checks capacity
backend/app/core/relocation/matching/engine.py - Scenario Services → Scenario Simulator: invokes
- Scenario Simulator → Risk Computation: computes risk
backend/app/core/scenarios/engine.py - Scenario Simulator → Dynamic Red Zones: evaluates zones
backend/app/core/scenarios/engine.py - Scenario Simulator → Relocation Priority: scores priority
backend/app/core/scenarios/engine.py - Scenario Simulator → Site Suitability: assesses sites
backend/app/core/scenarios/engine.py - Scenario Simulator → Site Capacity: sizes capacity
backend/app/core/scenarios/engine.py - Scenario Simulator → Relocation Matching: assigns sites
backend/app/core/scenarios/engine.py - Scenario Simulator → Evacuation Routing: plans routes
backend/app/core/scenarios/engine.py - Risk Computation → Regional Profiles: loads configuration
backend/app/core/risk/computation/engine.py - Hazard Providers → Risk Computation: supplies observations
backend/app/core/risk/computation/engine.py - Data Ingestion → Spatial Database: loads datasets
- Live Telemetry → Hazard Providers: uses provider data
- Governance Workflows → Spatial Database: persists decisions
- REST API → Reports: serves reports