mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +00:00
Merge pull request #380 from mapbox/short-circuit-maxzoom
Stop processing zooms when a feature reaches its explicit maxzoom tag
This commit is contained in:
commit
bbf9716361
@ -1,3 +1,7 @@
|
|||||||
|
## 1.16.12
|
||||||
|
|
||||||
|
* Stop processing higher zooms when a feature reaches its explicit maxzoom tag
|
||||||
|
|
||||||
## 1.16.11
|
## 1.16.11
|
||||||
|
|
||||||
* Remove polygon splitting, since polygon cleaning is now fast enough
|
* Remove polygon splitting, since polygon cleaning is now fast enough
|
||||||
|
4
tile.cpp
4
tile.cpp
@ -1451,7 +1451,9 @@ long long write_tile(FILE *geoms, long long *geompos_in, char *metabase, char *s
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (first_time && pass == 1) { /* only write out the next zoom once, even if we retry */
|
if (first_time && pass == 1) { /* only write out the next zoom once, even if we retry */
|
||||||
rewrite(geom, z, nextzoom, maxzoom, bbox, tx, ty, buffer, line_detail, within, geompos, geomfile, fname, t, layer, metastart, feature_minzoom, child_shards, max_zoom_increment, original_seq, tippecanoe_minzoom, tippecanoe_maxzoom, segment, initial_x, initial_y, m, metakeys, metavals, has_id, id, index, extent);
|
if (tippecanoe_maxzoom == -1 || tippecanoe_maxzoom >= nextzoom) {
|
||||||
|
rewrite(geom, z, nextzoom, maxzoom, bbox, tx, ty, buffer, line_detail, within, geompos, geomfile, fname, t, layer, metastart, feature_minzoom, child_shards, max_zoom_increment, original_seq, tippecanoe_minzoom, tippecanoe_maxzoom, segment, initial_x, initial_y, m, metakeys, metavals, has_id, id, index, extent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (z < minzoom) {
|
if (z < minzoom) {
|
||||||
|
@ -1 +1 @@
|
|||||||
#define VERSION "tippecanoe v1.16.11\n"
|
#define VERSION "tippecanoe v1.16.12\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user