Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def decode_tilename(self, name):
pass
def identify_tiles_overlapping_xybbox(self, bbox):
return
def get_congruent_tiles_from_tilename(self, tilename,
target_sampling=None,
target_tiletype=None):
return
class CopernicusTile(Tile):
"""
Equi7 Tile class
A tile in the Equi7 grid system.
"""
def __init__(self, core, name):
super(CopernicusTile, self).__init__(core, name, -180, -90)
def list_tiles_covering_land(self):
"""
Returns a list of all tiles in the subgrid covering land
Returns
-------
list
list containing land tiles
"""
land_tiles = Equi7Grid._static_data[
self.core.tag]["coverland"][self.core.tiletype]
return list(land_tiles)
class Equi7Tile(Tile):
"""
The Equi7Tile class, inheriting Tile() from pytileproj.
A tile in the Equi7Grid system, holding characteristics of the tile.
"""
def __init__(self, core, name, xll, yll, covers_land):
super(Equi7Tile, self).__init__(core, name, xll, yll)
self.covers_land = covers_land
@property
def shortname(self):
return self.name[7:]