Need help with LatitudeHistoryPlotter?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

snowdonjames
126 Stars 21 Forks MIT License 10 Commits 5 Opened issues

Description

Overlays kml data on a user specified image

Services available

!
?

Need anything else?

Contributors list

LatitudeHistoryPlotter

github.com/snowdonjames/LatitudeHistoryPlotter

This python script parses kml data file(s) ( see http://en.wikipedia.org/wiki/KeyholeMarkupLanguage ) and renders arcs contained within over a user specified image. Although the choice of image is open, map and satellite data are recommended.

This script is intended for use with latitude data obtained from https://www.google.com/takeout/‎ and converted to kml using the latitude-json-converter created by Gerwin Sturm and Kyle Krafka.

Usage

This script requires the Python Imaging Library (PIL) to run - please obtain from www.pythonware.com/products/pil/

Simply run the LatitudePlot.py file inside of a directory containing:

  • All kml files to be rendered
  • An image file for the kml arcs to be plotted on
  • A csv file named ImageData.csv containing the following fields (in this order): image file name,top edge latitude,bottom edge latitude,left edge longitude,right edge longitude,(optional)x coordinate nudge,(optional)y coordinate nudge

Upon completion, an output file should be created in the directory named LatitudeData.png

Examples of use are at my personal website

Example csv format:

For use with http://i.imgur.com/7pZFD7s.jpg (Southern United Kingdom)

7pZFD7s.jpg,52.939176, 49.031686, -5.894165, 0.453186,-30,-5

or

for use with http://i.imgur.com/CjyohmR.jpg (whole United Kingdom)

CjyohmR.jpg,59.925110, 48.892321, -11.096191, 1.944580,-2,10

This tool helps with finding the latitude and longitude of image corners: http://itouchmap.com/latlong.html

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.