Skip to content

Instantly share code, notes, and snippets.

@jongarae
jongarae / create_geo.py
Last active April 3, 2025 17:20 — forked from sieuwe1/create_geo.py
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, direction):
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