Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add check for required input parameter for CLI and GUI #41

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

treee111
Copy link
Owner

@treee111 treee111 commented Oct 18, 2021

extracted from #40:

  • now not only for GUI but also for CLI the country argument is checked
  • Added a check at the start to see if a country is to process is specified. Otherwise closing the GUI without selecting anything resulted in a runtime error.

- now not only for GUI but also for CLI the country argument is checked
@treee111 treee111 changed the title Add check for required input parameter for CLI and GUI [FEATURE] Add check for required input parameter for CLI and GUI Oct 18, 2021
Copy link
Contributor

@Ebe66 Ebe66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me.

@treee111 treee111 merged commit 3abc29a into develop Oct 19, 2021
treee111 added a commit that referenced this pull request Oct 19, 2021
- now not only for GUI but also for CLI the country argument is checked
- added a check at the start to see if a country is to process is specified. Otherwise closing the GUI without selecting anything resulted in a runtime error.
@treee111 treee111 deleted the check-for-required-argument branch October 19, 2021 17:58
treee111 added a commit that referenced this pull request Oct 19, 2021
- now not only for GUI but also for CLI the country argument is checked
- added a check at the start to see if a country is to process is specified. Otherwise closing the GUI without selecting anything resulted in a runtime error.
treee111 added a commit that referenced this pull request Oct 22, 2021
…. Use 'v12' tag (keep) filters (#46)

- In the filter stage, do not re-convert the result file(s) back to .osm.pbf format. This saves some time here but more importantly osmconvert is much faster in cutting tiles out of o5m files then .osm.pbf files.
- Switched to using 'v12' tag (keep) filters. This only keeps the tags used by Wahoo's devices render themes. Additionally, filter out all names tags except for those used, like city names. So highway names for example or filtered out.
- At the start of the splitting phase check for the existence of a merged .osm.pbf file. This prevents unnecessary splitting tiles out of for instance Europe when the tile is already processed from a smaller, so faster, part like Germany.

* takeover changes from #40

* osmium does not support writing to o5m format

* Introduce Pull Request Template

* [FEATURE] Add check for required input parameter for CLI and GUI (#41)

- now not only for GUI but also for CLI the country argument is checked
- added a check at the start to see if a country is to process is specified. Otherwise closing the GUI without selecting anything resulted in a runtime error.

* [FEATURE] Enhance check for existing (already downloaded) polygons and .osm.pbf files (#43)

- use the files modification date, not the creation time. On windows this seemed to occasionally see newly downloaded files as the ones they replaced.
- check for a full match instead of doing a wildcard match while checking for existing maps. This prevents matching to multiple maps like australia and australia-oceania.

* refactoring (pylint, formatting, comments)

- change pylint findings
- format constans on save
- delete unused comments

* don't really know what these lines are doing
treee111 added a commit that referenced this pull request Nov 14, 2021
- Prevents the initialisation of the graphical GUI on WSL.

* Introduce Pull Request Template

* [FEATURE] Add check for required input parameter for CLI and GUI (#41)

- now not only for GUI but also for CLI the country argument is checked
- added a check at the start to see if a country is to process is specified. Otherwise closing the GUI without selecting anything resulted in a runtime error.

* [FEATURE] Enhance check for existing (already downloaded) polygons and .osm.pbf files (#43)

- use the files modification date, not the creation time. On windows this seemed to occasionally see newly downloaded files as the ones they replaced.
- check for a full match instead of doing a wildcard match while checking for existing maps. This prevents matching to multiple maps like australia and australia-oceania.

* Delete PULL_REQUEST_TEMPLATE.md

* Delete wahoo_map_creator.py

* Check if we are running in WSl. If so prevent starting the Gui

Co-authored-by: Benjamin <benni.kreuscher@gmail.com>
Co-authored-by: Benjamin K <53038537+treee111@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants