flip every y,x to x,y

This commit is contained in:
Laura Klünder 2017-10-29 11:32:44 +01:00
parent cce476c37a
commit a3be7b2842
7 changed files with 19 additions and 17 deletions

View file

@ -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)),