savage-lands/share/readmes/geo.md
2025-04-17 00:41:48 +03:00

884 B

##if you get the following error:

django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal", "GDAL", "gdal2.2.0", "gdal2.1.0", "gdal2.0.0", "gdal1.11.0", "gdal1.10.0", "gdal1.9.0"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.

you must install on the host machine the following packages: sudo apt-get install binutils libproj-dev gdal-bin

next you must update POstgres to use POSTGIS

https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/postgis/

update postgres

the following packages must be installed:

(x.x matching the PostgreSQL version you want to install)

postgresql-x.x postgresql-x.x-postgis postgresql-server-dev-x.x python-psycopg2

find out the postgres server number:

apt list --installed | grep 'post'