Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexandre Augusto Barbosa barbosaale

View GitHub Profile
@barbosaale
barbosaale / create_geotiff.py
Created Sep 5, 2022 — forked from oliverwkim/create_geotiff.py
Helper file to create a geotiff from a given image or from an automatically downloaded satellite image from google maps which is centered around a given coordinate .
View create_geotiff.py
"""
BST License
# Description
File to create geotiffs depends on gdal installed on system. Can be used under two modes:
1) Download a satellite overview screenshot from google maps around a center
coordinate. Can give zoom (max is usually 20, but depends on area - will return
an image with error message if zoom is too high) and image size
(defaults to max 640x640)
2) Convert an existing image into a geotiff by giving UL and LR corner