Skip to content

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

Merged
kshitijrajsharma merged 4 commits intodevelopfrom
fix/post_processing
Mar 13, 2025
Merged

Fixes post processing. Add more detailed stats for custom exports. #293
kshitijrajsharma merged 4 commits intodevelopfrom
fix/post_processing

Conversation

@emi420
Copy link
Copy Markdown
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.

@emi420 emi420 requested a review from kshitijrajsharma March 12, 2025 17:34
@emi420
Copy link
Copy Markdown
Contributor Author

emi420 commented Mar 12, 2025

@kshitijrajsharma tests were failing for this PR before but now all passed, it seems it was a broken service (Kontur stats?)

@kshitijrajsharma
Copy link
Copy Markdown
Member

kshitijrajsharma commented Mar 12, 2025

You should also remove osm_type I think it would be redundant too !

@emi420
Copy link
Copy Markdown
Contributor Author

emi420 commented Mar 13, 2025

You should also remove osm_type I think it would be redundant too !

✅ Done!

@kshitijrajsharma kshitijrajsharma merged commit 36a1d00 into develop Mar 13, 2025
5 checks passed
@kshitijrajsharma kshitijrajsharma deleted the fix/post_processing branch March 13, 2025 22:47
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.

2 participants