diff --git a/README.md b/README.md index 1461d8da..bbdcb32b 100644 --- a/README.md +++ b/README.md @@ -352,6 +352,7 @@ Parallel processing will also be automatic if the input file is in FlatGeobuf fo specified maximum zoom and to any levels added beyond that. * `--extend-zooms-if-still-dropping-maximum=`_count_: Increase the maxzoom if features are still being dropped at that zoom level by up to _count_ zoom levels. + * `-at` or `--truncate-zooms`: Don't produce child tiles for any tile that should be sufficient to be overzoomed to any higher zoom level. Such tiles will be produced with `--extra-detail` detail and simplification. Tiles with point features below the basezoom or where any features have to be dropped dynamically, or which contain too many features or bytes with full detail, will be written out with normal detail and split into child tiles. * `-R` _zoom_`/`_x_`/`_y_ or `--one-tile=`_zoom_`/`_x_`/`_y_: Set the minzoom and maxzoom to _zoom_ and produce only the single specified tile at that zoom level. diff --git a/main.cpp b/main.cpp index c11c0423..4b69b05f 100644 --- a/main.cpp +++ b/main.cpp @@ -3050,6 +3050,7 @@ int main(int argc, char **argv) { {"smallest-maximum-zoom-guess", required_argument, 0, '~'}, {"extend-zooms-if-still-dropping", no_argument, &additional[A_EXTEND_ZOOMS], 1}, {"extend-zooms-if-still-dropping-maximum", required_argument, 0, '~'}, + {"truncate-zooms", no_argument, &additional[A_TRUNCATE_ZOOMS], 1}, {"one-tile", required_argument, 0, 'R'}, {"Tile resolution", 0, 0, 0}, diff --git a/man/tippecanoe.1 b/man/tippecanoe.1 index d57bd352..1855f2dd 100644 --- a/man/tippecanoe.1 +++ b/man/tippecanoe.1 @@ -416,6 +416,8 @@ specified maximum zoom and to any levels added beyond that. \fB\fC\-\-extend\-zooms\-if\-still\-dropping\-maximum=\fR\fIcount\fP: Increase the maxzoom if features are still being dropped at that zoom level by up to \fIcount\fP zoom levels. .IP \(bu 2 +\fB\fC\-at\fR or \fB\fC\-\-truncate\-zooms\fR: Don't produce child tiles for any tile that should be sufficient to be overzoomed to any higher zoom level. Such tiles will be produced with \fB\fC\-\-extra\-detail\fR detail and simplification. Tiles with point features below the basezoom or where any features have to be dropped dynamically, or which contain too many features or bytes with full detail, will be written out with normal detail and split into child tiles. +.IP \(bu 2 \fB\fC\-R\fR \fIzoom\fP\fB\fC/\fR\fIx\fP\fB\fC/\fR\fIy\fP or \fB\fC\-\-one\-tile=\fR\fIzoom\fP\fB\fC/\fR\fIx\fP\fB\fC/\fR\fIy\fP: Set the minzoom and maxzoom to \fIzoom\fP and produce only the single specified tile at that zoom level. .RE diff --git a/options.hpp b/options.hpp index c56c5fcd..b82f3b22 100644 --- a/options.hpp +++ b/options.hpp @@ -26,6 +26,7 @@ #define A_HILBERT ((int) 'h') #define A_VISVALINGAM ((int) 'v') #define A_GENERATE_POLYGON_LABEL_POINTS ((int) 'P') +#define A_TRUNCATE_ZOOMS ((int) 't') #define P_SIMPLIFY ((int) 's') #define P_SIMPLIFY_LOW ((int) 'S')