New layer-stats tool to explore data #293
Merged
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.
The tool is modeled on the OpenMapTiles
qa/
tools. The tool shows some statistics for a given layer's field for each zoom. It currently supports 3 methods:frequency
-- Shows how often each unique value occurs in a layer's column. If more than one column is given, shows unique combinations.toplength
-- Shows the longest N values for a given layer's column.variance
-- Shows a few statistical metrics for a column's numeric value.This is a simple test script I used outside of the docker, and it could be adapted to run inside the docker as well. https://gist.github.com/nyurik/457102422adfb380ec9e8552d7656112
@TomPohys we can merge this and then add a new flag, e.g.
--markdown
to generate.md
output.Sample output: