mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-06 04:41:54 +02:00
Close #80: fix scale computing.
This commit is contained in:
parent
208e78d167
commit
a6275a20c0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue