def __init__(self, bbox=None, configuration=None, standalone=False): self.standalone = standalone self.big_bbox = bbox self.job_queue_name = 'jobs' self.mercator = GlobalMercator() self.small_bboxes = [] self.configuration = configuration
def add_meter(self, vertical_distance, horizontal_distance): mercator = GlobalMercator() copy = self.copy() lat, lon = mercator.MetersToLatLon(horizontal_distance, vertical_distance) copy.latitude += lat copy.longitude += lon return copy
def __init__(self, zoom_level=19): self.config = self._read_wms_config() self.auth = self.set_auth() self.zoom_level = zoom_level self._auth_monkey_patch(self.auth) self.mercator = GlobalMercator() from owslib.wms import WebMapService self.wms = WebMapService(url=self.config.get(section='WMS', option='Url'), version=self.config.get(section='WMS', option='Version'))
def __init__(self, zoom_level=19): self._mercator = GlobalMercator() self._zoom_level = zoom_level
def _calculate_max_distance(zoom_level, square_image_length): global_mercator = GlobalMercator() resolution = global_mercator.Resolution(zoom_level) return resolution * (square_image_length / 2)
def _calculate_step_distance(self, zoom_level): global_mercator = GlobalMercator() resolution = global_mercator.Resolution(zoom_level) return resolution * (self._square_image_length / 1.5)
def __init__(self, bbox, job_queue_name, search=None): self.big_bbox = bbox self.job_queue_name = job_queue_name self.mercator = GlobalMercator() self.small_bboxes = [] self.search = self._search(search)
def __init__(self, zoom_level=19): self._url_first_part = 'https://t' self._url_second_part = '.ssl.ak.tiles.virtualearth.net/tiles/a' self._url_last_part = '.jpeg?g=4401&n=z' self._zoom_level = zoom_level self._mercator = GlobalMercator()