Get gdal development libraries:
$ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install libgdal-dev
Create and activate a virtual environment:
#!/bin/bash | |
## | |
## Tested on: Ubuntu 18.04 & ECW 5.4 & GDAL 2.3.2 from completely clean install of OS | |
## | |
## Download the ERDAS ECW JP2 SDK v5.4 Linux | |
## https://download.hexagongeospatial.com/downloads/ecw/erdas-ecw-jp2-sdk-v5-4-linux | |
## Download GDAL v2.3 Source (ex. 2.3.2) |
export PYTHON_VERSION=3.4.3 | |
export PYTHON_SHORT_VERSION=3.4 | |
export GEOS_VERSION=3.6.2 | |
export GDAL_VERSION=2.2.2 | |
export PROJ4_VERSION=4.9.3 | |
sudo yum-config-manager --enable epel | |
sudo yum install gdal-python | |
sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel |
#!/bin/sh | |
# AUTHOR | |
# DANIEL E. GILLESPIE (2016) | |
# https://github.com/dantheman213 | |
# DESCRIPTION | |
# Export your app's table schemas and stored functions from a PostgreSQL | |
# database into individual *.sql files for easy management and source control. |