Skip to content

Commit

Permalink
[BREAKING] Process coding that can be influenced by user-input withou…
Browse files Browse the repository at this point in the history
…t `-fp` - speeds up playing with tags (#150)

* [FEAT] Refactor a lot to decouple and make maintenance easier (focus osm_maps_functions.py) (#152)

* import file_directory functions one by one

- and not by importing the whole file "as" fd_fct

* create OsmData object and insert into class OsmMaps

* move check for -co and -xy to input.py

* shuffle a lot

* go throught calc_border_countries also when no border countries are wanted

* break OsmData in small pieces

* refactor border country calc + fix unittests

* force_processing refactoring, all checks in OsmData now!

- move to function process_input_of_the_tool
- move corresponding stuff from check_and_download_files also
- additional needed changes - mainiy in downloader.py
- adjust tests & do nearly refactoring

* import needed functions + pylint findings

* refactor imports to "single import" and not the whole file

* fix pylint finding

* Bump to version v2.1.0a13

* Update osm_maps_functions.py

According to the documentation 
https://wiki.openstreetmap.org/wiki/Osmfilter#Keep_only_specific_Tags
tags have to be enclosed with >"<

* Update osm_maps_functions.py

Keep out_file_o5m if not force_processing to speed up build process when updating filtering tags / tag-mapping / tag-transform

* finalization of @zenziwerken 's work

pylint finding, comment

* catch error if file does not exist but should be deleted

e.g. if processing -fp after switching from v2.0.2 to this version (Windows only)

* adjust constants processing based on discussion in PR

#150 (comment)

* adjust tag-wahoo.xml processing based on discussion in PR

#150 (comment)

* adjust splitting to tiles processing based on discussion in PR

#150 (comment)

* adjust merging with land and sea processing based on discussion in PR

#150 (comment)

* fix pylint finding

* harmonize comments

* Bump to version v2.1.0a14

* Revert to version v2.0.2

Co-authored-by: Daniel Groß <[email protected]>

BREAKING CHANGE:
Coding that can be influenced by user-input is now processed without giving `-fp` and coding that can not be influenced is only re-procecced when issuing `-fp`. That speeds up playing with tags.
  • Loading branch information
treee111 authored Oct 3, 2022
1 parent 9810b6d commit 71161c1
Showing 1 changed file with 168 additions and 164 deletions.
Loading

0 comments on commit 71161c1

Please sign in to comment.