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

Fixes post processing. Add more detailed stats for custom exports. #293

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

emi420
Copy link
Contributor

@emi420 emi420 commented Mar 4, 2025

What type of PR is this?

  • 🐛 Bug Fix

What does this PR do ?

Fixes wrong stats

There are two issues currently with stats generation:

  1. Total number of features is wrong
  2. Wrong tags are included

For example here total number of features should be 450297, highway percentage should be 100% and no building should be there:

image

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:

image

Also the languages list was added and osm_id and Total 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.

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.

1 participant