Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snowdonjames/LatitudeHistoryPlotter
Overlays kml data on a user specified image
https://github.com/snowdonjames/LatitudeHistoryPlotter
Last synced: 5 days ago
JSON representation
Overlays kml data on a user specified image
- Host: GitHub
- URL: https://github.com/snowdonjames/LatitudeHistoryPlotter
- Owner: snowdonjames
- License: mit
- Created: 2013-07-30T13:08:05.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-10T16:38:43.000Z (over 9 years ago)
- Last Synced: 2024-08-02T12:48:53.486Z (3 months ago)
- Language: Python
- Size: 162 KB
- Stars: 127
- Watchers: 15
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - snowdonjames/LatitudeHistoryPlotter - Overlays kml data on a user specified image (others)
README
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/](https://www.google.com/takeout/) and converted to kml using the [latitude-json-converter](https://github.com/Scarygami/latitude-json-converter) created by [Gerwin Sturm](https://github.com/Scarygami) and [Kyle Krafka](https://github.com/kjkjava).
## 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 nudgeUpon completion, an output file should be created in the directory named LatitudeData.png
Examples of use are at [my personal website](http://snowdonjames.com/rendering-long-term-location-data-from-google-latitude/)
## 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
orfor 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