Skip to content

Instantly share code, notes, and snippets.

View rupestre-campos's full-sized avatar

Cainã rupestre-campos

View GitHub Profile
@rupestre-campos
rupestre-campos / pip-install-gdal.md
Created July 30, 2020 20:22 — forked from cspanring/pip-install-gdal.md
Installing GDAL in a Python virtual environment

Installing GDAL in a Python virtual environment

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:

@rupestre-campos
rupestre-campos / gdal_ecw.sh
Created June 15, 2020 20:00 — forked from rossoe/gdal_ecw.sh
Install GDAL 2.3 with ECW support on Ubuntu 18.04 (working with QGIS 3.6)
#!/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)
@rupestre-campos
rupestre-campos / awazon-linux-gdal-installation.sh
Created March 20, 2020 19:51 — forked from hervenivon/awazon-linux-gdal-installation.sh
Install GEOS, PROJ4 & GDAL on amazon linux
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
@rupestre-campos
rupestre-campos / export_db_structure.sh
Created November 20, 2019 12:34 — forked from dantheman213/export_db_structure.sh
Batch backup and export your Postgres or PostgreSQL table schemas and stored functions or procedures into individual *.sql files --the easy way!
#!/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.