def test_feature_collection_from_rasters():
    rasters_list = [
        GeoRaster2.open("./tests/data/raster/overlap1.tif"),
        GeoRaster2.open("./tests/data/raster/overlap2.tif")
    ]
    fc = FeatureCollection.from_georasters(rasters_list)
    assert fc.is_rasters_collection()
def test_featurecollection_apply_on_rasters_collection():
    rasters_list = [
        GeoRaster2.open("./tests/data/raster/overlap1.tif"),
        GeoRaster2.open("./tests/data/raster/overlap2.tif")
    ]
    fc = FeatureCollection.from_georasters(rasters_list)
    new_fc = fc.apply(prop1=3)
    assert new_fc.is_rasters_collection()
Beispiel #3
0
def test_feature_collection_from_rasters_with_empty_list():
    rasters_list = []
    fc = FeatureCollection.from_georasters(rasters_list)
    assert not fc.is_rasters_collection()