tilezen / joerd

Joerd can be used to download, merge and generate tiles from digital elevation data
MIT License
324 stars 50 forks source link

Fix bad offsets in normal tiles. #71

Closed zerebubuth closed 8 years ago

zerebubuth commented 8 years ago

Numpy arrays index rows as the first number, i.e: y rather than x first, defying convention. This was causing normal tiles adjacent to world boundaries to be offset by 10 pixels in x, y or both directions.

Also, the 0th row is at the top of the image, so it should have been using the top margin rather than the bottom margin to index from.

@rmarianski could you review, please?

rmarianski commented 8 years ago

:+1: