diff --git a/Makefile b/Makefile index 08b53c71..d01eb42b 100644 --- a/Makefile +++ b/Makefile @@ -326,6 +326,11 @@ overzoom-test: tippecanoe-overzoom ./tippecanoe-decode tests/pbf/0-0-0-pop-expr.pbf 0 0 0 > tests/pbf/0-0-0-pop-expr.pbf.json.check cmp tests/pbf/0-0-0-pop-expr.pbf.json.check tests/pbf/0-0-0-pop-expr.pbf.json rm tests/pbf/0-0-0-pop-expr.pbf tests/pbf/0-0-0-pop-expr.pbf.json.check + # Same filter test, but reading the filter from a file + ./tippecanoe-overzoom -y NAME -J tests/pbf/scalerank-0-filter.json -o tests/pbf/0-0-0-pop-expr.pbf tests/pbf/0-0-0-pop.pbf 0/0/0 0/0/0 + ./tippecanoe-decode tests/pbf/0-0-0-pop-expr.pbf 0 0 0 > tests/pbf/0-0-0-pop-expr.pbf.json.check + cmp tests/pbf/0-0-0-pop-expr.pbf.json.check tests/pbf/0-0-0-pop-expr.pbf.json + rm tests/pbf/0-0-0-pop-expr.pbf tests/pbf/0-0-0-pop-expr.pbf.json.check # Filtering with multiplier # 243 features in the source tile tests/pbf/0-0-0-pop.pbf # 8 features survive into the output, from 9 clusters of 30 diff --git a/tests/pbf/scalerank-0-filter.json b/tests/pbf/scalerank-0-filter.json new file mode 100644 index 00000000..c2b996d4 --- /dev/null +++ b/tests/pbf/scalerank-0-filter.json @@ -0,0 +1 @@ +{"*":["SCALERANK","eq",0]}