def test_reproject_raster_dataset(self): georef.reproject_raster_dataset(self.ds, spacing=0.005, resample=gdal.GRA_Bilinear, align=True) georef.reproject_raster_dataset(self.ds, size=(1000, 1000), resample=gdal.GRA_Bilinear, align=True) self.assertRaises(NameError, lambda: georef.reproject_raster_dataset(self.ds)) dst = georef.epsg_to_osr(31466) georef.reproject_raster_dataset(self.ds, spacing=100., resample=gdal.GRA_Bilinear, align=True, projection_target=dst)
def test_reproject_raster_dataset(self): georef.reproject_raster_dataset( self.ds, spacing=0.005, resample=gdal.GRA_Bilinear, align=True ) georef.reproject_raster_dataset( self.ds, size=(1000, 1000), resample=gdal.GRA_Bilinear, align=True ) with pytest.raises(NameError): georef.reproject_raster_dataset(self.ds) dst = georef.epsg_to_osr(25832) georef.reproject_raster_dataset( self.ds, spacing=100.0, resample=gdal.GRA_Bilinear, align=True, projection_target=dst, )
def test_reproject_raster_dataset(self): georef.reproject_raster_dataset(self.ds, spacing=0.005, resample=gdal.GRA_Bilinear, align=True) georef.reproject_raster_dataset(self.ds, size=(1000, 1000), resample=gdal.GRA_Bilinear, align=True) self.assertRaises(NameError, lambda: georef.reproject_raster_dataset(self.ds)) dst = georef.epsg_to_osr(31466) georef.reproject_raster_dataset(self.ds, spacing=100., resample=gdal.GRA_Bilinear, align=True, projection_target=dst)
def test_reproject_raster_dataset(self): georef.reproject_raster_dataset(self.ds, spacing=0.005, resample=gdal.GRA_Bilinear, align=True)