Don't run shell filters if the current zoom is below the minzoom

This commit is contained in:
Eric Fischer
2019-04-08 16:30:19 -07:00
parent 99dc019d92
commit ffab876002
+5
View File
@@ -1786,6 +1786,11 @@ long long write_tile(FILE *geoms, std::atomic<long long> *geompos_in, char *meta
FILE *prefilter_read_fp = NULL;
json_pull *prefilter_jp = NULL;
if (z < minzoom) {
prefilter = NULL;
postfilter = NULL;
}
if (prefilter != NULL) {
setup_filter(prefilter, &prefilter_write, &prefilter_read, &prefilter_pid, z, tx, ty);
prefilter_fp = fdopen(prefilter_write, "w");