mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-28 16:36:27 +02:00
Fix center point computing.
The point was (longitude, latitude) instead of (latitude, longitude).
This commit is contained in:
parent
221b0bace6
commit
b8a5669e80
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class BoundaryBox:
|
|||
def center(self) -> np.ndarray:
|
||||
"""Return center point of boundary box."""
|
||||
return np.array(
|
||||
((self.left + self.right) / 2, (self.top + self.bottom) / 2)
|
||||
((self.top + self.bottom) / 2, (self.left + self.right) / 2)
|
||||
)
|
||||
|
||||
def get_format(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue