sepal_ui.aoi.aoi_view.AdminField#

class sepal_ui.aoi.aoi_view.AdminField(**kwargs)[source]#

An admin level selector.

It is binded to ee (GAUL 2015) or not (GADM). Allows to select administrative codes taking into account the administrative parent code and displaying humanly readable administrative names.

Parameters:
  • level (int) – The administrative level of the field

  • parent (Select | None) – the adminField that deal with the parent admin level of the current selector. used to narrow down the possible options

  • ee – whether to use ee or not (default to True)

  • gee (bool)

Attributes

gee

whether or not to depend on earthengine

level

The admin level of the current field

parent

The parent adminfield object

Methods

__init__

An admin level selector.

get_items

Update the item list based on the given filter.

show

when an admin field is shown, show its parent as well.

AdminField.__init__(level, parent=None, gee=True)[source]#

An admin level selector.

It is binded to ee (GAUL 2015) or not (GADM). Allows to select administrative codes taking into account the administrative parent code and displaying humanly readable administrative names.

Parameters:
  • level (int) – The administrative level of the field

  • parent (Select | None) – the adminField that deal with the parent admin level of the current selector. used to narrow down the possible options

  • ee – whether to use ee or not (default to True)

  • gee (bool)

Return type:

None

AdminField.get_items(filter_='')[source]#

Update the item list based on the given filter.

Parameters:

filter_ (str) – The code of the parent v_model to filter the current results

Return type:

Self

AdminField.show()[source]#

when an admin field is shown, show its parent as well.

Return type:

Self