def __init__(self, filename, source_wkt=None, dest_wkt=None): Raster.__init__(self, filename) self.driver = gdal.GetDriverByName("MEM") self.source_wkt = source_wkt self.dest_wkt = dest_wkt if source_wkt: self.ds.SetProjection(str(source_wkt))
def __init__(self, filename, dest_wkt, source_wkt=None): Raster.__init__(self, filename) self.driver = gdal.GetDriverByName("MEM") self.dest_wkt = dest_wkt self.source_wkt = source_wkt if source_wkt: self.ds.SetProjection(str(source_wkt))
def __init__(self, filename): Raster.__init__(self, filename) self.driver = gdal.GetDriverByName("MEM")