Close #80: fix scale computing.

This commit is contained in:
Sergey Vartanov 2021-10-12 23:58:31 +03:00
parent 208e78d167
commit a6275a20c0

View file

@ -92,5 +92,5 @@ class Flinger:
# Get pixels per meter ratio for the center of the boundary box.
coordinates = self.geo_boundaries.center()
scale_factor: float = 1 / np.cos(coordinates[0] / 180 * np.pi)
scale_factor: float = abs(1 / np.cos(coordinates[0] / 180 * np.pi))
return self.pixels_per_meter * scale_factor