eolearn.io.geopedia

Module for adding data obtained from sentinelhub package to existing EOPatches

class eolearn.io.geopedia.AddGeopediaFeatureTask(*args, **kwargs)[source]

Bases: eolearn.core.eotask.EOTask

Task for adding a feature from Geopedia to an existing EOPatch.

At the moment the Geopedia supports only WMS requestes in EPSG:3857, therefore to add feature to EOPatch in arbitrary CRS and arbitrary service type the following steps are performed: * transform BBOX from EOPatch’s CRS to EPSG:3857 * get raster from Geopedia Request in EPSG:3857 * vectorize the returned raster using rasterio * project vectorised raster back to EOPatch’s CRS * rasterize back and add raster to EOPatch

Stores initialization parameters and the order to the instance attribute init_args.

execute(eopatch)[source]

Add requested feature to this existing EOPatch.

class eolearn.io.geopedia.AddGeopediaFeature(*args, **kwargs)[source]

Bases: eolearn.io.geopedia.AddGeopediaFeatureTask

A deprecated version of AddGeopediaFeatureTask

Stores initialization parameters and the order to the instance attribute init_args.