Skip to content

Instantly share code, notes, and snippets.

@nyurik

nyurik/run.sh Secret

Created June 5, 2020 04:09
Show Gist options
  • Save nyurik/457102422adfb380ec9e8552d7656112 to your computer and use it in GitHub Desktop.
Save nyurik/457102422adfb380ec9e8552d7656112 to your computer and use it in GitHub Desktop.
A test script to evaluate the layer-stats tool
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
command="python3 /home/$USER/dev/openmaptiles/openmaptiles-tools/bin/layer-stats"
tileset=/home/$USER/dev/openmaptiles/openmaptiles/openmaptiles.yaml
export PYTHONPATH=/home/$USER/dev/openmaptiles/openmaptiles-tools
export PGPORT=32786
# ---- frequency -------------------------------------
$command frequency $tileset aeroway class
###Todo:$command frequency $tileset boundary admin_level disputed
$command frequency $tileset boundary admin_level
###Todo: $command frequency $tileset boundary disputed
$command frequency $tileset building render_min_height
#$command frequency $tileset housenumber housenumber
$command frequency $tileset landcover class subclass
$command frequency $tileset landuse class
$command frequency $tileset park class
$command frequency $tileset place class
$command frequency $tileset place class capital
$command frequency $tileset place capital
$command frequency $tileset place class capital rank
$command frequency $tileset place rank
$command frequency $tileset poi class
$command frequency $tileset poi subclass
$command frequency $tileset poi rank
$command frequency $tileset poi class subclass
$command frequency $tileset poi class subclass rank
$command frequency $tileset poi class rank
$command frequency $tileset transportation class oneway ramp brunnel service
$command frequency $tileset transportation oneway ramp brunnel service
$command frequency $tileset transportation class
$command frequency $tileset transportation_name class
$command frequency $tileset transportation_name ref_length
$command frequency $tileset water class
$command frequency $tileset water_name class
$command frequency $tileset waterway class
# ---- toplength -------------------------------------------
$command toplength $tileset housenumber housenumber
$command toplength $tileset place name
$command toplength $tileset place name_en
$command toplength $tileset poi name
$command toplength $tileset poi name_en
$command toplength $tileset transportation_name name
$command toplength $tileset transportation_name ref
###Todo: $command toplength $tileset transportation_name network
$command toplength $tileset water_name name
$command toplength $tileset water_name name_en
$command toplength $tileset waterway name
# ---- variance -------------------------------------
$command variance $tileset building render_min_height
$command variance $tileset building render_height
$command variance $tileset transportation_name ref_length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment