Closed treee111 closed 2 years ago
Hi @zenziwerken, as announced I made a separate PR for the changes for potential speed gains. I tested it like written in the "How to test" section. The generated files had no differences, I needed a -fp on the second command to get the poi xml interpreted and other output. This is not what the achievement should be if I understood it correc.
Are the changes in this PR like you proposed? Is description and the "How to test" written by me the same as you thought with these changes?
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.
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:
-fp
is given or o5m file does not existAfter that, -fp
has kind of changes the character in these situations and we can further check if the -fp
is still valid, can be deleted or can be combined with -fd
Perfect. That's it!
Hi @zenziwerken, so I am done now in my opinion. You can have a look at the changes in the "Files changed" tab. "Hide whitespaces" makes the diff not so hugh. Could you please test in your Windows environment if everything works as desired? I created v2.1.0a14 for easy test-install. Thanks! Greetings
Everything looks perfect. Mapcreation runs smoothly under Windows.
Everything looks perfect. Mapcreation runs smoothly under Windows.
thanks!
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