mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Impose a limit on the maximum number of features in a tile.
This commit is contained in:
@@ -569,6 +569,12 @@ long long write_tile(char **geoms, char *metabase, unsigned *file_bbox, int z, u
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (features.size() > 0) {
|
if (features.size() > 0) {
|
||||||
|
if (features.size() > 200000) {
|
||||||
|
fprintf(stderr, "tile %d/%u/%u has %lld features, >200000 \n", z, tx, ty, (long long) features.size());
|
||||||
|
fprintf(stderr, "Try using -z to set a higher base zoom level.\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
mapnik::vector::tile tile = create_tile(layername, line_detail, features, &count, &keys, &values);
|
mapnik::vector::tile tile = create_tile(layername, line_detail, features, &count, &keys, &values);
|
||||||
|
|
||||||
pool_free(&keys);
|
pool_free(&keys);
|
||||||
|
|||||||
Reference in New Issue
Block a user