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:
Eric Fischer 2017-03-15 09:51:02 -07:00 committed by GitHub
commit bbf9716361
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.16.12
* Stop processing higher zooms when a feature reaches its explicit maxzoom tag
## 1.16.11
* Remove polygon splitting, since polygon cleaning is now fast enough

View File

@ -1451,8 +1451,10 @@ 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 (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) {
continue;

View File

@ -1 +1 @@
#define VERSION "tippecanoe v1.16.11\n"
#define VERSION "tippecanoe v1.16.12\n"