-
-
Save gijs/11367233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def WorldFileParameters(self, tx, ty, zoom): | |
"Returns world file (affine transofrmation) parameters of the given tile" | |
bounds = self.TileBounds( tx, ty, zoom) | |
moriginx = bounds[1] + (self.Resolution(zoom) / 2) | |
moriginy = bounds[2] - (self.Resolution(zoom) / 2) | |
return (self.Resolution(zoom), 0.0, 0.0, self.Resolution(zoom) * -1, moriginx, moriginy) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment