GeoDjango Project is a web application built with Django and GeoDjango, designed to manage and visualize geographic data. It provides tools for users to efficiently handle spatial data, perform geospatial queries, and render maps. It aims to provide insights for farmers by offering vegetation indices such as NDVI (Normalized Difference Vegetation Index), CGI (Crop Growth Index), and NDWI (Normalized Difference Water Index).
Follow these steps to install and set up the project locally: Sign up for Google Earth Engine here and here also.
-
Clone the repository:
git clone https://github.com/elhazsow/geodjango.git cd geodjango
- Configure Google Earth Engine:
- Sign up for Google Earth Engine here.
- Install the Earth Engine Python API:
pip install earthengine-api
- Authenticate the Earth Engine API using the provided config file:
earthengine authenticate --config-file path/to/config/file
- Configure Google Earth Engine:
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set up the database:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
To use the project, follow these steps:
- Open your web browser and go to
http://127.0.0.1:8000/
. - Log in with the superuser credentials you created.
- Start managing and visualizing your geographic data.
This project is licensed under the MIT License.