Skip to content

Instantly share code, notes, and snippets.

View sieuwe1's full-sized avatar
🏠
Working from home

sieuwe elferink sieuwe1

🏠
Working from home
View GitHub Profile
@sieuwe1
sieuwe1 / create_geo.py
Created August 31, 2024 18:03
Simple python tool for creating geo.txt file for webODM using exif data in image files
import os
import piexif
epsg_code = "EPSG:4326"
def convert_to_degrees(value):
d = float(value[0][0]) / float(value[0][1]) # Degrees
m = float(value[1][0]) / float(value[1][1]) # Minutes
s = float(value[2][0]) / float(value[2][1]) # Seconds