Exemple #1
0
 def _flat_chunk_basename(self, key, chunk_coords):
     xmin, xmax, ymin, ymax, zmin, zmax = chunk_coords
     chunk_filename = _CHUNK_PATTERN_FLAT.format(xmin,
                                                 xmax,
                                                 ymin,
                                                 ymax,
                                                 zmin,
                                                 zmax,
                                                 key=key)
     return chunk_filename
 def chunk_relative_url(self, key, chunk_coords):
     xmin, xmax, ymin, ymax, zmin, zmax = chunk_coords
     url_suffix = _CHUNK_PATTERN_FLAT.format(xmin,
                                             xmax,
                                             ymin,
                                             ymax,
                                             zmin,
                                             zmax,
                                             key=key)
     return url_suffix