That's still not right. Don't generate a tile with no layers.

This commit is contained in:
Eric Fischer
2016-07-12 15:56:57 -07:00
parent 666729e344
commit cb45f1c3bd
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1061,7 +1061,7 @@ long long write_tile(FILE *geoms, long long *geompos_in, char *metabase, char *s
oprogress = progress;
}
if (totalsize > 0) {
if (totalsize > 0 && tile.layers.size() > 0) {
if (totalsize > 200000 && !prevent[P_FEATURE_LIMIT]) {
fprintf(stderr, "tile %d/%u/%u has %lld features, >200000 \n", z, tx, ty, totalsize);
fprintf(stderr, "Try using -B to set a higher base zoom level.\n");