Giter Club home page Giter Club logo

geotag2kml's Introduction

geotag2kml

Description

Blog post: https://forensenellanebbia.blogspot.com/2015/08/geotag2kml-python-script-to-create-kml.html

The is a cross-platform script that uses ExifTool to find geotagged files and parse their metadata. It then creates two different Google Earth .KML files to display the photos/videos found.

The .KML file will be structured this way:

  • GPS points are grouped and sorted by YYYY | YYYY:MM | YYYY:MM:DD;
  • the first GPS point of each date is indicated with an icon different from the other points of the same date;
  • the GPS points occurred on the same date are connected with a colored line;
  • placemark names contain: "Timestamp | Make Model | Filename";
  • when clicking on a placemark icon, the picture preview appears.

KML

KML


Prerequisites

How to install each component

#Python3 dependencies

  • pip3 install geopy Pillow randomcolor

#Windows 10 x64

#Ubuntu (last tested with Ubuntu 22.04.1 LTS)

#ExifTool
sudo apt install libimage-exiftool-perl -y

#libheif
sudo apt-get install libheif-examples

#Google Earth
wget -O ~/google-earth.deb https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb && sudo dpkg -i ~/google-earth.deb

#Mac OS (tested with macOS Big Sur 11.0.1)

  • If you're having any issue while installing Pillow, try:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install libjpeg && pip3 install Pillow --user
brew install imagemagick

How to use the script

Run the script and type the absolute path of the directory to parse. Examples:

  • Microsoft Windows: python3 geotag2kml.py C:\MyPhotos
  • Ubuntu: python3 geotag2kml.py /home/username/Desktop/Photos

The output files will be saved under the given path.

geotag2kml's People

Contributors

forensenellanebbia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.