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
+5
View File
@@ -1,3 +1,8 @@
## 1.12.5
* Be careful not to produce an empty tile if there was a feature with
empty geometry.
## 1.12.4 ## 1.12.4
* Be even more careful not to produce features with empty geometry * Be even more careful not to produce features with empty geometry
-3
View File
@@ -64,9 +64,6 @@
] } ] }
] } ] }
, ,
{ "type": "FeatureCollection", "properties": { "zoom": 11, "x": 328, "y": 791 }, "features": [
] }
,
{ "type": "FeatureCollection", "properties": { "zoom": 12, "x": 650, "y": 1578 }, "features": [ { "type": "FeatureCollection", "properties": { "zoom": 12, "x": 650, "y": 1578 }, "features": [
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [ { "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ -122.822235, 38.090509 ], [ -122.822213, 38.090543 ] ] } } { "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ -122.822235, 38.090509 ], [ -122.822213, 38.090543 ] ] } }
+1 -1
View File
@@ -1061,7 +1061,7 @@ long long write_tile(FILE *geoms, long long *geompos_in, char *metabase, char *s
oprogress = progress; oprogress = progress;
} }
if (totalsize > 0) { if (totalsize > 0 && tile.layers.size() > 0) {
if (totalsize > 200000 && !prevent[P_FEATURE_LIMIT]) { if (totalsize > 200000 && !prevent[P_FEATURE_LIMIT]) {
fprintf(stderr, "tile %d/%u/%u has %lld features, >200000 \n", z, tx, ty, totalsize); 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"); fprintf(stderr, "Try using -B to set a higher base zoom level.\n");
+1 -1
View File
@@ -1 +1 @@
#define VERSION "tippecanoe v1.12.4\n" #define VERSION "tippecanoe v1.12.5\n"