SHARE
TWEET

Untitled

a guest Jun 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @staticmethod
  2. def get_tile_xy(latitude, longitude):
  3.     x = int((longitude + 180.0) / 5.0) + 1
  4.     y = int(-latitude / 5.0) + 12
  5.     return x, y
  6.  
  7. @staticmethod
  8. def get_tile_name_xy(x, y):
  9.     return "srtm_{0:02d}_{1:02d}".format(x, y)
  10.  
  11. def get_tile_name(self, latitude, longitude):
  12.     x, y = self.get_tile_xy(latitude, longitude)
  13.     return self.get_tile_name_xy(x, y)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top