Extract metadata and generate the image map of a GPX trace file.
python main.py -f path/to/trace.gpx -o /output/directoryWill produce trace.yml and trace.jpg in the desired location.
or use the package in your python project.
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:
- Webpage Creation: The webpage is first created and saved as a cache file.
- Rendering: Selenium then renders the webpage using a headless Firefox browser.
- Screenshot Capture: A screenshot is taken of the rendered page to produce the image map.
Create virtualenv
OSX
brew install virtualenvthen
virtualenv venv venv
source venv/bin/activate
pip install .
pip install -r requirements-test.txtblack .
flake8 .
pytest