Skip to content

Commit

Permalink
Add (currently broken) test of overzooming in tile-join
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Aug 18, 2023
1 parent 2c1992c commit 59b5f82
Show file tree
Hide file tree
Showing 3 changed files with 4,690 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,16 @@ join-test: tile-join
./tippecanoe-decode -x generator -x generator_options -x name -x description tests/join-population/empty.dirtiles > tests/join-population/empty.out.json.check
cmp tests/join-population/empty.out.json.check tests/join-population/empty.out.json
rm -rf tests/join-population/empty.dirtiles tests/join-population/empty.out.dirtiles tests/join-population/empty.out.json.check


#
# Test overzooming of tilesets with different maxzooms
#
mkdir -p tests/ne_110m_ocean/join
./tippecanoe -q -z4 -f -o tests/ne_110m_ocean/join/ocean.mbtiles tests/ne_110m_ocean/in.json
./tippecanoe -q -z2 -d8 -y name -f -o tests/ne_110m_ocean/join/countries.mbtiles tests/ne_110m_admin_0_countries/in.json.gz
./tile-join --overzoom -f -o tests/ne_110m_ocean/join/joined.mbtiles tests/ne_110m_ocean/join/ocean.mbtiles tests/ne_110m_ocean/join/countries.mbtiles
./tippecanoe-decode tests/ne_110m_ocean/join/joined.mbtiles > tests/ne_110m_ocean/join/joined.mbtiles.json.check
cmp tests/ne_110m_ocean/join/joined.mbtiles.json.check tests/ne_110m_ocean/join/joined.mbtiles.json
rm -f tests/ne_110m_ocean/join/ocean.mbtiles tests/ne_110m_ocean/join/countries.mbtiles tests/ne_110m_ocean/join/joined.mbtiles tests/ne_110m_ocean/join/joined.mbtiles.json.check

join-filter-test:
# Comes out different from the direct tippecanoe run because null attributes are lost
Expand Down
2 changes: 2 additions & 0 deletions tests/ne_110m_ocean/in.json

Large diffs are not rendered by default.

4,678 changes: 4,678 additions & 0 deletions tests/ne_110m_ocean/join/joined.mbtiles.json

Large diffs are not rendered by default.

0 comments on commit 59b5f82

Please sign in to comment.