CreodiasS3Search#
- class eodag.plugins.search.creodias_s3.CreodiasS3Search(provider, config)[source]#
CreodiasS3Search
is an extension ofODataV4Search
, it executes a Search on creodias and adapts results so that the assets contain links to s3. It has the same configuration parameters asODataV4Search
and one additional parameter:- Parameters:
provider – provider name
config –
Search plugin configuration:
s3_endpoint
(str
) (mandatory): base url of the s3
Methods
__init__
(provider, config)build_query_string
(product_type, **kwargs)Build The query string using the search parameters
build_sort_by
(sort_by_arg)Build the sorting part of the query string or body by transforming the
sort_by
argument into a provider-specific string or dictionaryclear
()Clear search context
collect_search_urls
([prep])Build paginated urls
count_hits
(count_url[, result_type])Count the number of results satisfying some criteria
discover_product_types
(**kwargs)Fetch product types list from provider using discover_product_types conf
discover_product_types_per_page
(**kwargs)Fetch product types list from provider using discover_product_types conf using paginated
kwargs["fetch_url"]
discover_queryables
(**kwargs)Fetch queryables list from provider using its constraints file
do_search
([prep])A two step search can be performed if the metadata are not given into the search result
get_collections
(prep, **kwargs)Get the collection to which the product belongs
get_metadata_mapping
([product_type])Get the plugin metadata mapping configuration (product type specific if exists)
get_metadata_search_url
(entity)Build the metadata link for the given entity
get_product_type_cfg_value
(key[, default])Get the value of a configuration option specific to the current product type.
get_product_type_def_params
(product_type, ...)Get the provider product type definition parameters and specific settings
get_sort_by_arg
(kwargs)Extract the
sort_by
argument from the kwargs or the provider default sort configurationlist_queryables
(filters[, product_type])Get queryables
map_product_type
(product_type, **kwargs)Get the provider product type from eodag product type
normalize_results
(results, **kwargs)Build EOProducts from provider results
query
([prep])Perform a search on an OpenSearch-like interface
update_metadata_mapping
(metadata_mapping)Update plugin metadata_mapping with input metadata_mapping configuration
Attributes
extract_properties
plugins
auth
next_page_url
next_page_query_obj
total_items_nb
need_count