mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Don't guess an excessively large maxzoom when there is only one feature
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
## 2.16.0
|
## 2.16.0
|
||||||
|
|
||||||
* Make as-needed dropping and coalescing much faster: Don't keep scanning through the whole layer looking for another small feature.
|
* Make as-needed dropping and coalescing much faster: Don't keep scanning through the whole layer looking for another small feature.
|
||||||
|
* Don't guess an excessively large maxzoom when there is only one feature
|
||||||
|
|
||||||
## 2.15.2
|
## 2.15.2
|
||||||
|
|
||||||
|
|||||||
@@ -2093,7 +2093,12 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo
|
|||||||
exit(EXIT_NODATA);
|
exit(EXIT_NODATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count > 0) {
|
if (count == 0 && dist_count == 0) {
|
||||||
|
maxzoom = minimum_maxzoom;
|
||||||
|
if (droprate < 0) {
|
||||||
|
droprate = 1;
|
||||||
|
}
|
||||||
|
} else if (count > 0) {
|
||||||
double stddev = sqrt(m2 / count);
|
double stddev = sqrt(m2 / count);
|
||||||
|
|
||||||
// Geometric mean is appropriate because distances between features
|
// Geometric mean is appropriate because distances between features
|
||||||
|
|||||||
Reference in New Issue
Block a user