Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 3
0
 def tile_xy(self, level):
     return TileSystem.getTileXYByPixcelXY(self.px(level), self.py(level))
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 6
0
 def tile_xy(self, level):
     return TileSystem.getTileXYByPixcelXY(self.px(level), self.py(level))