Limit guessed maxzoom to avoid spending too many tiles on polygon fill (#23)

* Change sqlite3 schema to deduplicate identical tiles

* Limit guessed maxzoom to avoid spending too many tiles on polygon fill

* Fix test.

These dust polygons now have their area calculated because their
maxzoom is being guessed, so the attributes from the largest one
rather than the last one are preserved.

* Increase polygon limit to a million tiles

* Two million tiles ought to be enough for anyone, right?

* Add explanatory comments for mysterious numbers
This commit is contained in:
Erica Fischer
2022-11-07 10:14:17 -08:00
committed by GitHub
parent 1584543224
commit 622084a507
7 changed files with 130 additions and 30 deletions
+1
View File
@@ -150,6 +150,7 @@ struct serialization_state {
double *dist_sum = NULL; // running tally for calculation of resolution within features
size_t *dist_count = NULL;
double *area_sum = NULL;
bool want_dist = false;
int maxzoom = 0;