diff --git a/map_machine/flinger.py b/map_machine/flinger.py index 95c1063..9dd3389 100644 --- a/map_machine/flinger.py +++ b/map_machine/flinger.py @@ -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