Home - PavelMostovoy/map_aqa_science GitHub Wiki

Welcome to the map.aqa.science wiki!

Database connection

For connect DB via IDE liki Pycharn at the end of URL should be added :

?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory

GDAL Install

Windows

http://www.gisinternals.com/archive.php

download http://download.gisinternals.com/sdk/downloads/release-1900-x64-gdal-2-2-3-mapserver-7-0-7/gdal-202-1900-x64-core.msi and add to path

alternative variant:

Install Python 3.6 (32 bit) Create a virtual environment and activate it pip install django pip install psycopg2 pip install GDAL-2.2.4-cp36-cp36m-win_amd64.whl You can get that .whl here. Take note of the warning there "Do not use together with OSGeo4W or gdalwin32". add 2 system environment variables "GDAL_DATA" and "GDAL_LIB".

GDAL_DATA = C:<path_to_your>\venv\Lib\site-packages\osgeo\data\gdal GDAL_LIB = C:<path_to_your>\venv\Lib\site-packages\osgeo Then, add each variable to your system PATH like so: %GDAL_DATA% %GDAL_LIB%

Restart Pycharm and Fire up the django server

Raspberry

sudo apt-get install gdal-bin qgis

Mac

brew install gdal --HEAD