Example #1
0
 def __checkWGS84Latlon(self):
     if self.__lat is None or self.__lon is None:
         if self.__px is not None and self.__py is not None:
             self.__lat, self.__lon = TileSystem.getLatLonByPixcelXY(self.__px, self.__py, self.MAX_LEVEL)
         elif self.__twd67_x is not None and self.__twd67_y is not None:
             self.__lat, self.__lon = CoordinateSystem.TWD67_TM2ToTWD97_LatLon(self.__twd67_x, self.__twd67_y)
         elif self.__twd97_x is not None and self.__twd97_y is not None:
             self.__lat, self.__lon = CoordinateSystem.TWD97_TM2ToTWD97_LatLon(self.__twd97_x, self.__twd97_y)
         else:
             raise ValueError("Not propriate init")
Example #2
0
 def __checkWGS84Latlon(self):
     if self.__lat is None or self.__lon is None:
         if self.__px is not None and self.__py is not None:
             self.__lat, self.__lon = TileSystem.getLatLonByPixcelXY(self.__px, self.__py, self.MAX_LEVEL)
         elif self.__twd67_x is not None and self.__twd67_y is not None:
             self.__lat, self.__lon = CoordinateSystem.TWD67_TM2ToTWD97_LatLon(self.__twd67_x, self.__twd67_y)
         elif self.__twd97_x is not None and self.__twd97_y is not None:
             self.__lat, self.__lon = CoordinateSystem.TWD97_TM2ToTWD97_LatLon(self.__twd97_x, self.__twd97_y)
         else:
             raise ValueError("Not propriate init")
Example #3
0
 def tile_xy(self, level):
     return TileSystem.getTileXYByPixcelXY(self.px(level), self.py(level))
Example #4
0
 def __checkPixcel(self):
     if self.__px is None or self.__py is None:
         self.__checkWGS84Latlon()
         self.__px, self.__py = TileSystem.getPixcelXYByLatLon(self.__lat, self.__lon, self.MAX_LEVEL)
Example #5
0
 def __checkPixcel(self):
     if self.__px is None or self.__py is None:
         self.__checkWGS84Latlon()
         self.__px, self.__py = TileSystem.getPixcelXYByLatLon(
             self.__lat, self.__lon, self.MAX_LEVEL)
Example #6
0
 def tile_xy(self, level):
     return TileSystem.getTileXYByPixcelXY(self.px(level), self.py(level))