-
Notifications
You must be signed in to change notification settings - Fork 27
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
[BREAKING] Process coding that can be influenced by user-input without -fp
- speeds up playing with tags
#150
Conversation
cc6c0b9
to
e25a78a
Compare
Hi @zenziwerken, Are the changes in this PR like you proposed? Thanks! |
I did not make myself sufficiently clear. The result should be the same. It just skip converting the original pfb-file from OSM to o5m every time when playing with filtering tags / tag-mapping / tag-transform. |
This was also what I interpreted from your changes, but thought I was not having the real understanding. I think I got now what would give a speed gain:
After that, |
Perfect. That's it! |
172c5cf
to
19e9e5b
Compare
3edcbe7
to
57affb6
Compare
bb8d40e
to
1ec886c
Compare
…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
According to the documentation https://wiki.openstreetmap.org/wiki/Osmfilter#Keep_only_specific_Tags tags have to be enclosed with >"<
Keep out_file_o5m if not force_processing to speed up build process when updating filtering tags / tag-mapping / tag-transform
pylint finding, comment
e.g. if processing -fp after switching from v2.0.2 to this version (Windows only)
1ec886c
to
de0e856
Compare
Hi @zenziwerken, |
Everything looks perfect. Mapcreation runs smoothly under Windows. |
thanks! |
0cae7e4
to
7068867
Compare
-fp
- speeds up playing with tags
-fp
- speeds up playing with tags-fp
- speeds up playing with tags
This PR…
filter_tags_from_country_osm_pbf_files
to speed up processing when playing with filtering tags / tag-mapping / tag-transformConsiderations and implementations
Coding that can be influeced by user-input:
Coding that can not be influeced by user-input:
How to test
checkout this branch or install version v2.1.0a14 via
pip install wahoo_mc==2.1.0a14
python -m wahoomc cli -co malta -tag tag-wahoo.xml -fp
python -m wahoomc cli -co malta -tag tag-wahoo-poi.xml
The files from 2. and 4. should be different. This would show, that the both .xml files have done their job.
Pull Request Checklist