Skip to content

ghn/extrakt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extrakt 🦎

Extract metadata and generate the image map of a GPX trace file.

Usage

python main.py -f path/to/trace.gpx -o /output/directory

Will produce trace.yml and trace.jpg in the desired location.

or use the package in your python project.

Image Map Generation Process

The image map is generated from a screenshot of a webpage that displays an OpenStreetMap with a trace rendered using Leaflet.js. The process follows these steps:

  1. Webpage Creation: The webpage is first created and saved as a cache file.
  2. Rendering: Selenium then renders the webpage using a headless Firefox browser.
  3. Screenshot Capture: A screenshot is taken of the rendered page to produce the image map.

Development

Setup

Create virtualenv

OSX

brew install virtualenv

then

virtualenv venv venv
source venv/bin/activate
pip install .
pip install -r requirements-test.txt

Run tests

black .
flake8 .
pytest

Inspired by

About

Extract metadata and generate the image map of a GPX trace file.

Topics

Resources

License

Stars

Watchers

Forks

Contributors