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] Enhance check for existing (already downloaded) polygons and .osm.pbf files #43

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

treee111
Copy link
Owner

extracted from #40:

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

- 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.
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.

Looks good

@treee111 treee111 changed the title [FEATURE] Enhance checking for existing files [FEATURE] Enhance checking for existing (already downloaded) files Oct 19, 2021
@treee111 treee111 changed the title [FEATURE] Enhance checking for existing (already downloaded) files [FEATURE] Enhance check for existing (already downloaded) files Oct 19, 2021
@treee111 treee111 changed the title [FEATURE] Enhance check for existing (already downloaded) files [FEATURE] Enhance check for existing (already downloaded) polygons and .osm.pbf files Oct 19, 2021
@treee111 treee111 merged commit 93f9faa into develop Oct 19, 2021
@treee111 treee111 deleted the enhance-check-for-existing-files branch October 19, 2021 20:48
treee111 added a commit that referenced this pull request Oct 19, 2021
…d .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.
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.

2 participants