GithubHelp home page GithubHelp logo

goryszewskig / latitudehistoryplotter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snowdonjames/latitudehistoryplotter

0.0 2.0 0.0 58 KB

Overlays kml data on a user specified image

License: MIT License

latitudehistoryplotter's Introduction

LatitudeHistoryPlotter

github.com/snowdonjames/LatitudeHistoryPlotter

This python script parses kml data file(s) ( see http://en.wikipedia.org/wiki/Keyhole_Markup_Language ) 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

latitudehistoryplotter's People

Contributors

snowdonjames avatar sigvef avatar

Watchers

 avatar  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.