Tilestats metadata no longer needs to be limited to 60K

This commit is contained in:
Eric Fischer 2017-08-16 12:53:10 -07:00
parent 8f02aa40c4
commit e6fc22187a
2 changed files with 2 additions and 9 deletions

View File

@ -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