How jaxdeeznutz/geosustain_proj works
GeoSustain is a geospatial decision-support application for sustainable landscape management in Panabo City. Farmers and analysts map or select land, submit it for environmental analysis and crop ranking, then review recommendations, explanations, and saved history; analyst and admin screens provide broader reporting and management. The current documented runtime is Flutter plus FastAPI, with PostgreSQL/Supabase and environmental data providers. The graph follows documented and indexed relationships; frontend screen-to-screen behavior and unsampled route details are not inferred.
Main entry points: fastapi_app.py FastAPI routes · environmental_pipeline.py Environmental retrieval · api_service.dart API client · model_ranking.py Model ranking
Components 20
Flutter client
- Flutter app
lib/main.dart - Mobile workflows
lib/screens - Analyst and admin screens
lib/web/screens - API client
lib/api_service.dart
API and identity
- FastAPI routes
backend/fastapi_app.py - Password authentication
backend/password_auth.py - Legacy Flask app
backend/app.py
Land analysis
- Parcel geometry
backend/geometry.py - Environmental retrieval
backend/environmental_pipeline.py - Environmental data sources
backend/rainfallDatasets.py - Suitability assessment
backend/suitability.py - Crop requirements
backend/crop_requirements.py - Model ranking
backend/model_ranking.py - Model explanations
backend/model_explainability.py
Persistence and providers
- Persistence helpers
backend/database.py - PostgreSQL / Supabase
Other components
- Farmer
- Analyst and admin
- Weather providers
- Google Earth Engine
Connections 22
- Farmer → Flutter app: uses
README.md - Analyst and admin → Flutter app: uses
README.md - Flutter app → API client: uses
- Mobile workflows → API client: requests data
- Analyst and admin screens → API client: requests data
- API client → FastAPI routes: calls API
README.md - FastAPI routes → Password authentication: uses
backend/fastapi_app.py - FastAPI routes → Environmental retrieval: dispatches analysis
backend/fastapi_app.py - FastAPI routes → Parcel geometry: normalizes parcels
backend/fastapi_app.py - FastAPI routes → Persistence helpers: reads and writes
backend/fastapi_app.py - FastAPI routes → Legacy Flask app: replaces
README.md - Environmental retrieval → Environmental data sources: retrieves measurements
backend/environmental_pipeline.py - Environmental retrieval → Suitability assessment: assesses measurements
backend/environmental_pipeline.py - Environmental retrieval → Model ranking: ranks crops
backend/environmental_pipeline.py - Environmental retrieval → Model explanations: gets model snapshot
backend/environmental_pipeline.py - Suitability assessment → Crop requirements: uses criteria
backend/suitability.py - Model ranking → Crop requirements: filters crops
backend/model_ranking.py - Model ranking → Model explanations: finalizes explanation
backend/model_ranking.py - Environmental data sources → Weather providers: requests data
README.md - Environmental retrieval → Google Earth Engine: retrieves geospatial data
backend/environmental_pipeline.py - Persistence helpers → PostgreSQL / Supabase: persists records
README.md - Persistence helpers → Parcel geometry: normalizes parcels
backend/database.py