Permalink
Browse files

fixed offset results bug

  • Loading branch information...
jonnyhuck committed Nov 9, 2017
1 parent 32ff896 commit 6833ed28b9504b72ac8c10e5916f8ec1950f93c1
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapex.py
@@ -139,7 +139,7 @@ def toGeoTiff(geoData, w, h, filename):
# gt = [-7916400, 100, 0, 5210940, 0, -100] # This comes from the QR code
resolutionX = (geoData[2] - geoData[0]) / w
resolutionY = (geoData[3] - geoData[1]) / h
gt = [geoData[0], resolutionX, 0, geoData[1], 0, -resolutionY]
gt = [geoData[0], resolutionX, 0, geoData[3], 0, -resolutionY]
# Set location
dst_ds.SetGeoTransform(gt)

0 comments on commit 6833ed2

Please sign in to comment.