mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Bail if the tile size is larger than the uploader will accept
This commit is contained in:
@@ -205,7 +205,11 @@ void write_tile(struct index *start, struct index *end, char *metabase, unsigned
|
|||||||
|
|
||||||
tile.SerializeToString(&s);
|
tile.SerializeToString(&s);
|
||||||
compress(s, compressed);
|
compress(s, compressed);
|
||||||
//std::cout << compressed;
|
|
||||||
|
if (compressed.size() > 500000) {
|
||||||
|
fprintf(stderr, "tile %d/%u/%u size is %lld, >500000\n", z, tx, ty, (long long) compressed.size());
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
const char *prefix = "tiles";
|
const char *prefix = "tiles";
|
||||||
char path[strlen(prefix) + 200];
|
char path[strlen(prefix) + 200];
|
||||||
|
|||||||
Reference in New Issue
Block a user