Coordinate rounding that ripples everywhere

This commit is contained in:
Erica Fischer
2023-07-12 14:17:58 -07:00
parent 4b662171d0
commit a5441ac21b
72 changed files with 4544 additions and 4506 deletions
+2 -2
View File
@@ -370,8 +370,8 @@ static long long scale_geometry(struct serialization_state *sst, long long *bbox
// is already supposed to be aligned to tile boundaries (but is not, exactly,
// because of rounding error during projection).
geom[i].x = std::round(x * scale);
geom[i].y = std::round(y * scale);
geom[i].x = (long long) std::round(x * scale);
geom[i].y = (long long) std::round(y * scale);
} else {
geom[i].x = SHIFT_RIGHT(x);
geom[i].y = SHIFT_RIGHT(y);