Fixes post processing. Add more detailed stats for custom exports. #293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
What does this PR do ?
Fixes wrong stats
There are two issues currently with stats generation:
For example here total number of features should be
450297
,highway
percentage should be100%
and nobuilding
should be there:This is fixed in this PR, simplifying the way geojson_stats is being used.
Add more detailed HTML stats for custom exports
For Buildings, Roads, Highways, Waterways and Railways more detailed stats were added, including the values for the corresponding tag, for example waterways:
Also the languages list was added and
osm_id
andTotal features
were removed because those are redundant.Disable transliterations for now
Transliterations were not enabled in production. This feature was disabled for now, to not interfere with stats generation (as both are part of the post-processing feature) and will be added later.
How to test ?
Generate a custom export and check if the stats results are correct.