Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from osgeo import gdal, osr | |
# Adapted from https://svn.osgeo.org/gdal/trunk/autotest/alg/warp.py | |
def warp_with_gcps(input_path, output_path, gcps, gcp_epsg=3301, output_epsg=3301): | |
# Open the source dataset and add GCPs to it | |
src_ds = gdal.OpenShared(str(input_path), gdal.GA_ReadOnly) | |
gcp_srs = osr.SpatialReference() | |
gcp_srs.ImportFromEPSG(gcp_epsg) | |
gcp_crs_wkt = gcp_srs.ExportToWkt() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime as dt | |
from collections import OrderedDict | |
from glob import glob | |
from sys import argv | |
from PIL import Image | |
from PIL.ExifTags import TAGS, GPSTAGS | |
def get_exif_data(image): |
NewerOlder