mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-24 10:44:51 +00:00
Merge branch 'master' into blake-properties
This commit is contained in:
commit
bf2ea31b9b
13
CHANGELOG.md
13
CHANGELOG.md
@ -1,3 +1,16 @@
|
|||||||
|
## 1.32.0
|
||||||
|
|
||||||
|
* Fix a bug that allowed coalescing of features with mismatched attributes
|
||||||
|
if they had been passed through a shell prefilter
|
||||||
|
|
||||||
|
## 1.31.7
|
||||||
|
|
||||||
|
* Create the output tile directory even if there are no valid features
|
||||||
|
|
||||||
|
## 1.31.6
|
||||||
|
|
||||||
|
* Issue an error message in tile-join if minzoom is greater than maxzoom
|
||||||
|
|
||||||
## 1.31.5
|
## 1.31.5
|
||||||
|
|
||||||
* Add options to change the tilestats limits
|
* Add options to change the tilestats limits
|
||||||
|
7
Makefile
7
Makefile
@ -140,10 +140,15 @@ parallel-test:
|
|||||||
rm tests/parallel/*.mbtiles tests/parallel/*.json
|
rm tests/parallel/*.mbtiles tests/parallel/*.json
|
||||||
|
|
||||||
raw-tiles-test:
|
raw-tiles-test:
|
||||||
./tippecanoe -q -f -e tests/raw-tiles/raw-tiles -r1 tests/raw-tiles/hackspots.geojson -pC
|
./tippecanoe -q -f -e tests/raw-tiles/raw-tiles -r1 -pC tests/raw-tiles/hackspots.geojson
|
||||||
./tippecanoe-decode -x generator tests/raw-tiles/raw-tiles > tests/raw-tiles/raw-tiles.json.check
|
./tippecanoe-decode -x generator tests/raw-tiles/raw-tiles > tests/raw-tiles/raw-tiles.json.check
|
||||||
cmp tests/raw-tiles/raw-tiles.json.check tests/raw-tiles/raw-tiles.json
|
cmp tests/raw-tiles/raw-tiles.json.check tests/raw-tiles/raw-tiles.json
|
||||||
rm -rf tests/raw-tiles/raw-tiles tests/raw-tiles/compare.json.check
|
rm -rf tests/raw-tiles/raw-tiles tests/raw-tiles/compare.json.check
|
||||||
|
# Test that metadata.json is created even if all features are clipped away
|
||||||
|
./tippecanoe -q -f -e tests/raw-tiles/nothing tests/raw-tiles/nothing.geojson
|
||||||
|
./tippecanoe-decode -x generator tests/raw-tiles/nothing > tests/raw-tiles/nothing.json.check
|
||||||
|
cmp tests/raw-tiles/nothing.json.check tests/raw-tiles/nothing.json
|
||||||
|
rm -r tests/raw-tiles/nothing tests/raw-tiles/nothing.json.check
|
||||||
|
|
||||||
decode-test:
|
decode-test:
|
||||||
mkdir -p tests/muni/decode
|
mkdir -p tests/muni/decode
|
||||||
|
@ -65,6 +65,7 @@ static bool pbfname(const char *s) {
|
|||||||
void check_dir(const char *dir, bool force, bool forcetable) {
|
void check_dir(const char *dir, bool force, bool forcetable) {
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
|
mkdir(dir, S_IRWXU | S_IRWXG | S_IRWXO);
|
||||||
std::string meta = std::string(dir) + "/" + "metadata.json";
|
std::string meta = std::string(dir) + "/" + "metadata.json";
|
||||||
if (force) {
|
if (force) {
|
||||||
unlink(meta.c_str()); // error OK since it may not exist;
|
unlink(meta.c_str()); // error OK since it may not exist;
|
||||||
|
2
main.cpp
2
main.cpp
@ -3060,7 +3060,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (minzoom > maxzoom) {
|
if (minzoom > maxzoom) {
|
||||||
fprintf(stderr, "minimum zoom -Z cannot be greater than maxzoom -z\n");
|
fprintf(stderr, "%s: Minimum zoom -Z%d cannot be greater than maxzoom -z%d\n", argv[0], minzoom, maxzoom);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
tests/raw-tiles/nothing.geojson
Normal file
5
tests/raw-tiles/nothing.geojson
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"type": "FeatureCollection",
|
||||||
|
"features": [
|
||||||
|
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 999,999 ]} }
|
||||||
|
] }
|
13
tests/raw-tiles/nothing.json
Normal file
13
tests/raw-tiles/nothing.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ "type": "FeatureCollection", "properties": {
|
||||||
|
"bounds": "-180.000000,85.051129,180.000000,85.051129",
|
||||||
|
"center": "-179.989014,85.051129,14",
|
||||||
|
"description": "tests/raw-tiles/nothing",
|
||||||
|
"format": "pbf",
|
||||||
|
"json": "{\"vector_layers\": [ { \"id\": \"nothing\", \"description\": \"\", \"minzoom\": 0, \"maxzoom\": 14, \"fields\": {} } ],\"tilestats\": {\"layerCount\": 1,\"layers\": [{\"layer\": \"nothing\",\"count\": 1,\"geometry\": \"Point\",\"attributeCount\": 0,\"attributes\": []}]}}",
|
||||||
|
"maxzoom": "14",
|
||||||
|
"minzoom": "0",
|
||||||
|
"name": "tests/raw-tiles/nothing",
|
||||||
|
"type": "overlay",
|
||||||
|
"version": "2"
|
||||||
|
}, "features": [
|
||||||
|
] }
|
@ -1137,6 +1137,11 @@ int main(int argc, char **argv) {
|
|||||||
usage(argv);
|
usage(argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (minzoom > maxzoom) {
|
||||||
|
fprintf(stderr, "%s: Minimum zoom -Z%d cannot be greater than maxzoom -z%d\n", argv[0], minzoom, maxzoom);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
if (out_mbtiles != NULL) {
|
if (out_mbtiles != NULL) {
|
||||||
if (force) {
|
if (force) {
|
||||||
unlink(out_mbtiles);
|
unlink(out_mbtiles);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#ifndef VERSION_HPP
|
#ifndef VERSION_HPP
|
||||||
#define VERSION_HPP
|
#define VERSION_HPP
|
||||||
|
|
||||||
#define VERSION "v1.31.5"
|
#define VERSION "v1.32.0"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user