mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Don't guess an excessively large maxzoom when there is only one feature
This commit is contained in:
@@ -2093,7 +2093,12 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo
|
||||
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);
|
||||
|
||||
// Geometric mean is appropriate because distances between features
|
||||
|
||||
Reference in New Issue
Block a user