Skip to content

tagdynamics-org/testdata

Repository files navigation

testdata

Various (largish) test files for testing. These are stored in this separate repo so as not to bloat the actual code repos.

See repos linked below for further detail about these test files.

Recreating the test files

1-synth-osm-data.xml

Synthetic data similar to the OpenStreetMap full history data dump. Generated with testdata-generator as follows:

git clone git@github.com:tagdynamics-org/testdata-generator.git
cd testdata-generator
npm install
npm run create-test-data --output-file=../1-synth-osm-data.xml --nodes=7500

2-extracted-osm-metadata.jsonl

Extracted metadata for tags k1, k2, k3 from 1-synth-osm-data.xml. The repo osm-extract-tags contains a test that ensures that metadata extracted from 1-synth-osm-data.xml matches the cached file 2-extracted-osm-metadata.jsonl.

Create as follows:

git clone git@github.com:tagdynamics-org/osm-extract-tags.git
cd osm-extract-tags
npm install
npm run tag-extract --tags=k1,k2,k3 --input-file=../1-synth-osm-data.xml --output-file=../2-extracted-osm-metadata.jsonl
cd ..

3-aggregates/*

Compute various aggregates from 2-extracted-osm-metadata.jsonl:

rm -rf 3-aggregates # remove any old test data
bash make-aggregated-testdata.sh
rm -rf osm-tag-aggregator # cleanup

About

randomly generated OpenStreetMap testdata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages