eumap.datasets.lucas.io.LucasIO¶
- class LucasIO(url='http://lincalc-02.fsv.cvut.cz', version='1.1.0')[source]¶
Bases:
object
LUCAS features input / output class.
Methods
Download LUCAS features from dedicated WFS server based on specified request
request.LucasRequest
.Get images of selected point and its surroundings from Eurostat FTP server.
Check whether downloaded LUCAS feature collection is empty.
Get number of downloaded LUCAS features.
Get downloaded LUCAS features as GeoPandas GeoDataFrame structure.
Get downloaded LUCAS features as OGC GML string.
Save downloaded LUCAS features into OGC GeoPackage file.
Attributes
data
- download(request)[source]¶
Download LUCAS features from dedicated WFS server based on specified request
request.LucasRequest
.- Parameters
LucasRequest – request
- get_images(year, point_id)[source]¶
Get images of selected point and its surroundings from Eurostat FTP server.
- is_empty()[source]¶
Check whether downloaded LUCAS feature collection is empty.
- Return bool
True for empty collection otherwise False
- num_of_features()[source]¶
Get number of downloaded LUCAS features.
- Return int
number of downloaded features
- to_geopandas()[source]¶
Get downloaded LUCAS features as GeoPandas GeoDataFrame structure.
- Return GeoDataFrame
- to_gpkg(output_path)[source]¶
Save downloaded LUCAS features into OGC GeoPackage file.
Raises LucasDataError on failure.
- Parameters
output_path (str) – path to the output OGC GeoPackage file