Пример #1
0
 def test_get_from_opened_raster(self):
     src_obj = sample_load_rasterio()
     affine_obj = get_geo_transform(src_obj)
     assert affine_obj == Affine(0.5, 0.0, 733601.0, 0.0, -0.5, 3725139.0)
     src_obj.close()
Пример #2
0
 def test_get_from_gdal(self):
     src_obj = sample_load_gdal()
     affine_obj = get_geo_transform(src_obj)
     assert affine_obj == Affine(0.5, 0.0, 733601.0, 0.0, -0.5, 3725139.0)
Пример #3
0
 def test_get_from_file(self):
     affine_obj = get_geo_transform(
         os.path.join(data_dir, 'sample_geotiff.tif'))
     assert affine_obj == Affine(0.5, 0.0, 733601.0, 0.0, -0.5, 3725139.0)