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.

Parameters
  • url (str) – WFS endpoint

  • version (str) – WFS version to be used

Methods

download

Download LUCAS features from dedicated WFS server based on specified request request.LucasRequest.

get_images

Get images of selected point and its surroundings from Eurostat FTP server.

is_empty

Check whether downloaded LUCAS feature collection is empty.

num_of_features

Get number of downloaded LUCAS features.

to_geopandas

Get downloaded LUCAS features as GeoPandas GeoDataFrame structure.

to_gml

Get downloaded LUCAS features as OGC GML string.

to_gpkg

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.

Parameters
  • year (int) – year of the measurement

  • point_id (int) – id of the LUCAS point

Return images

dictionary of images (URL)

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_gml()[source]

Get downloaded LUCAS features as OGC GML string.

Return str

GML string

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