flip every y,x to x,y
This commit is contained in:
parent
cce476c37a
commit
a3be7b2842
7 changed files with 19 additions and 17 deletions
|
@ -207,7 +207,7 @@ class MapHistory:
|
|||
|
||||
def to_image(self):
|
||||
from c3nav.mapdata.models import Source
|
||||
(miny, minx), (maxy, maxx) = Source.max_bounds()
|
||||
(minx, miny), (maxx, maxy) = Source.max_bounds()
|
||||
|
||||
height, width = self.data.shape
|
||||
image_data = np.zeros((int(math.ceil((maxy-miny)/self.resolution)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue