mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
That's still not right. Don't generate a tile with no layers.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 ] ] } }
|
||||||
|
|||||||
@@ -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
@@ -1 +1 @@
|
|||||||
#define VERSION "tippecanoe v1.12.4\n"
|
#define VERSION "tippecanoe v1.12.5\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user