def test_direct_features_collections(): polygons = os.path.join(DATA, 'polygons.shp') features = read_features(polygons) collection = read_featurecollection(polygons) stats_direct = zonal_stats(polygons, raster) stats_features = zonal_stats(features, raster) stats_collection = zonal_stats(collection, raster) assert stats_direct == stats_features == stats_collection
def test_direct_features_collections(): polygons = os.path.join(DATA, 'polygons.shp') features = read_features(polygons) collection = read_featurecollection(polygons) stats_direct = zonal_stats(polygons, raster) stats_features = zonal_stats(features, raster) stats_collection = zonal_stats(collection, raster) assert stats_direct == stats_features == stats_collection
def test_featurecollection(): assert read_featurecollection(polygons)['features'] == \ list(read_features(polygons)) == \ target_features
def test_featurecollection(): assert read_featurecollection(polygons)['features'] == \ list(read_features(polygons)) == \ target_features