Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# load WKT string and extent shape
data = Equi7Grid._static_data[continent]
_core = copy.copy(core)
_core.tag = continent
_core.projection = TPSProjection(wkt=data['wkt'])
# holds core parameters of the (sub-) grid
self.core = _core
# holds name of the subgrid
self.name = ''.join(('EQUI7_', continent, Equi7Grid.encode_sampling(core.sampling), 'M'))
# holds the extent of the subgrid in the lonlat-space
self.polygon_geog = create_geometry_from_wkt(data['zone_extent'], epsg=4326)
# defines the tilingsystem of the subgrid
self.tilesys = Equi7TilingSystem(self.core, self.polygon_geog)
super(Equi7Subgrid, self).__init__(self.core, self.polygon_geog, self.tilesys)