CopGhslSearch#
- class eodag.plugins.search.cop_ghsl.CopGhslSearch(provider, config)[source]#
Search plugin to fetch items from Copernicus Global Human Settlement Layer
- Parameters:
provider (
str)config (
PluginConfig)
- __init__(provider, config)#
- Parameters:
provider (
str)config (
PluginConfig)
Methods
__init__(provider, config)build_sort_by(sort_by_arg)Build the sorting part of the query string or body by transforming the
sort_byargument into a provider-specific string or dictionaryclear()Method used to clear a search context between two searches.
discover_collections(**kwargs)Fetch collections list from provider using discover_collections conf
discover_queryables(**kwargs)Create queryables list based on constraints
get_assets_from_mapping(provider_item)Create assets based on the assets_mapping in the provider's config and an item returned by the provider
get_collection_cfg_dates([start_default, ...])Get start and end dates from the collection configuration.
get_collection_cfg_value(key[, default])Get the value of a configuration option specific to the current collection.
get_collection_def_params(collection[, ...])Get the provider collection definition parameters and specific settings
get_metadata_mapping([collection])Get the plugin metadata mapping configuration (collection specific if exists)
get_sort_by_arg(kwargs)Extract the
sort_byargument from the kwargs or the provider default sort configurationlist_queryables(filters, ...[, collection, ...])Get queryables
map_collection(collection, **kwargs)Get the provider collection from eodag collection
query([prep])Implementation of search for the Copernicus GHSL provider
queryables_from_metadata_mapping([...])Extract queryable parameters from collection metadata mapping.
validate(search_params, auth)Validate a search request.
Attributes
pluginsauthnext_page_urlnext_page_query_objtotal_items_nbneed_count