Skip to content

Instantly share code, notes, and snippets.

View rupestre-campos's full-sized avatar

Cainã rupestre-campos

View GitHub Profile
{"mosaicjson": "0.0.2", "name": null, "description": null, "version": "1.0.0", "attribution": null, "minzoom": 3, "maxzoom": 13, "quadkey_zoom": 6, "bounds": [-45.96771534542094, -21.79174206243167, -43.940370689005775, -20.796465507442598], "center": [-44.95404301721336, -21.294103784937136, 6], "tiles": {"210133": ["https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/23/K/NS/2022/4/S2B_23KNS_20220421_0_L2A/L2A_PVI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/23/K/MS/2022/4/S2B_23KMS_20220421_0_L2A/L2A_PVI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/23/K/MS/2022/2/S2A_23KMS_20220225_0_L2A/L2A_PVI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/23/K/NS/2022/3/S2A_23KNS_20220307_0_L2A/L2A_PVI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/23/K/NS/2022/3/S2B_23KNS_20220322_0_L2A/L2A_PVI.tif"], "211022": ["https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-co
@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.