treee111 / wahooMapsCreator

Create maps for Wahoo device based on latest OSM maps
247 stars 25 forks source link

[DEV] use `pyhgtmap` instead of `phyghtmap` for generating contour lines #234

Open treee111 opened 9 months ago

treee111 commented 9 months ago

This PR…

Considerations and implementations

Till now, there is no support for Windows, see https://github.com/agrenott/pyhgtmap/issues/7

ToDO

adjust documentation fix version of pyhgtmap and think of other publish-related stuff for this PR

How to test

  1. create environment gdal-dev-pyh using env .yml file
  2. switch to the environment
  3. swith to this branch
  4. Run wahooMapsCreator and include contour lines using -con
  5. Check if the result is the same as using phyghtmap

Pull Request Checklist

alfh commented 9 months ago

I think we can just use pyhgtmap with "jobs=1", then no forking is attempted, and it should work on windows as well. And then rather use asyncio to launch several instances of pyhgtmap. I'll do some testing on linux first and then on windows.