mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-22 02:06:38 +00:00
Tilestats metadata no longer needs to be limited to 60K
This commit is contained in:
parent
8f02aa40c4
commit
e6fc22187a
@ -416,7 +416,7 @@ void mbtiles_write_metadata(sqlite3 *outdb, const char *outdir, const char *fnam
|
||||
size_t elements = 100;
|
||||
std::string buf;
|
||||
|
||||
while (1) {
|
||||
{
|
||||
buf = "{";
|
||||
aprintf(&buf, "\"vector_layers\": [ ");
|
||||
|
||||
@ -472,13 +472,6 @@ void mbtiles_write_metadata(sqlite3 *outdb, const char *outdir, const char *fnam
|
||||
}
|
||||
|
||||
aprintf(&buf, "}");
|
||||
|
||||
if (buf.size() >= 60 * 1024 && elements > 0) {
|
||||
elements = elements / 2;
|
||||
continue;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
sql = sqlite3_mprintf("INSERT INTO metadata (name, value) VALUES ('json', %Q);", buf.c_str());
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user