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
An admin level selector.
Update the item list based on the given filter.
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