The Afghanistan Spatial Data Center (ASDC) is developed by iMMAP in Afghanistan. It is part of the iMMAP Disaster Risk Reduction Program, which is funded by the United States Agency for International Development (USAID)/Office of U.S. Foreign Disaster Assistance (OFDA).
The Disaster Risk Reduction (DRR) program is a scientific program that supports the humanitarian community with critical information to aid decision makers in emergency response or program development. The Afghanistan Spatial Data Center (ASDC) is the dissemination platform for DRR data and other baseline information. At present the ASDC is the most advanced geoportal on Afghanistan containing comprehensive and accurate data. The iMMAP DRR program is funded by USAID and it is ready for daily usage. The information provided on ASDC are especially useful in regards to prediction, emergency response, M&E and planning purposes.
GeoNode is a web-based application and platform for developing geospatial information systems (GIS) and for deploying spatial data infrastructures (SDI).
In order to install GeoNode, it is recommended to install Ubuntu 22.04.1 LTS 64-bit clean environment.
Install all the basic packages and tools needed for a complete GeoNode installation by following instruction in the link below::
https://docs.geonode.org/en/master/install/advanced/core/index.html#install-the-dependencies
For installation Geonode it’s recommended to create GeoNode Virtual Environment, please the follow the instruction bellow for complete GeoNode installation. Please follow the instructions below:
https://docs.geonode.org/en/master/install/advanced/core/index.html#geonode-installation.
For setting up users and databases for GeoNode in PostgreSQL please follow the steps in the link below:
https://docs.geonode.org/en/master/install/advanced/core/index.html#install-and-configure-the-postgresql-database-system.
GeoNode server requires Apache Tomcat 9 and Java 8 to be installed, catch up GeoServer complete installation by following steps the link bellow:
https://docs.geonode.org/en/master/install/advanced/core/index.html#install-geoserver
For accessing the Apache Tomcat 9 use: http://localhost:8080/
For installing the webserver, please follow the steps in the link below:
https://docs.geonode.org/en/master/install/advanced/core/index.html#web-server
For accessing the WebServer use: http://localhost:8080/geoserver
For accessing the Web GeoNode usee: http://localhost
For further information find below a playlist videos for advanced GeoNode installation: Advanced Geonode Installation
GeoNode template project. Generates a django project with GeoNode support.
- Java OpenJDK
- Python 3.8 , virtualenvwrapper and virtualenv
- pip
- Node v 14
mkvirtualenv my_geonode
workon my_geonode
git clone https://github.com/iMMAP/geonode_playground.git -b master
cd geonode_playground/src
3 - Install Django framework
pip install Django==3.2.13
Install all the requirements for the GeoNode-Project and install the GeoNode-Project using pip
pip install -r requirements.txt --upgrade
pip install -r requirements_other.txt --upgrade
pip install -e . --upgrade
pip install pygdal=="`gdal-config --version`.*" # or refer to the link <Install GDAL for Development <https://training.geonode.geo-solutions.it/005_dev_workshop/004_devel_env/gdal_install.html>
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update -y; sudo apt install -y postgresql-13 postgresql-13-postgis-3 postgresql-13-postgis-3-scripts postgresql-13 postgresql-client-13
Create geonode user
sudo service postgresql start
sudo -u postgres createuser -P my_geonode
# Use the password: geonode
Create my_geonode and my_geonode_data with owner my_geonode
sudo -u postgres createdb -O my_geonode my_geonode
sudo -u postgres createdb -O my_geonode my_geonode_data
create PostGIS extensions
sudo -u postgres psql -d my_geonode -c 'CREATE EXTENSION postgis;'
sudo -u postgres psql -d my_geonode -c 'GRANT ALL ON geometry_columns TO PUBLIC;'
sudo -u postgres psql -d my_geonode -c 'GRANT ALL ON spatial_ref_sys TO PUBLIC;'
sudo -u postgres psql -d my_geonode -c 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO my_geonode;'
sudo -u postgres psql -d my_geonode_data -c 'CREATE EXTENSION postgis;'
sudo -u postgres psql -d my_geonode_data -c 'GRANT ALL ON geometry_columns TO PUBLIC;'
sudo -u postgres psql -d my_geonode_data -c 'GRANT ALL ON spatial_ref_sys TO PUBLIC;'
sudo -u postgres psql -d my_geonode_data -c 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO my_geonode;'
change user access policies for local connections in the file pg_hba.conf
sudo nano /etc/postgresql/13/main/pg_hba.conf
Scroll down to the bottom of the document. We want to make local connection trusted
for the default user.
Make sure your configuration looks like the one below.
...
# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database superuser can access the database using some other method.
# Noninteractive access to all databases is required during automatic
# maintenance (custom daily cronjobs, replication, and similar tasks).
#
# Database administrative login by Unix domain socket
local all postgres trust
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5
Restart PostgreSQL to make the change effective.
sudo service postgresql restart
# Inside the src folder
sh ./paver_dev.sh setup
sh ./paver_dev.sh sync
# Inside the src folder
sh ./paver_dev.sh start
# Inside the src folder
cd my_geonode/static
npm install
npm run tailwind-watch