eodag.plugins.search.static_stac_search.StaticStacSearch#

class eodag.plugins.search.static_stac_search.StaticStacSearch(provider, config)[source]#

Static STAC Catalog search plugin

The available configuration parameters for this plugin are (to be set in provider configuration):

  • api_endpoint: (mandatory) path to the catalog (url or local system path)

  • max_connections: (optional) Maximum number of connections for HTTP requests, defaut is 100.

  • timeout: (mandatory) Timeout in seconds for each internal HTTP request, default is 5.

This plugin first loads all STAC items found in the catalog, and converts them to EOProducts using StacSearch. Then it uses crunchers to only keep products matching query parameters.

Parameters
  • provider (dict) – An eodag providers configuration dictionary

  • config (str) – Path to the user configuration file

__init__(provider, config)[source]#

Methods

__init__(provider, config)

build_query_string(product_type, **kwargs)

Build The query string using the search parameters

clear()

Clear search context

collect_search_urls([page, items_per_page, ...])

Adds pagination to query parameters, and auth to url

count_hits(count_url[, result_type])

Count the number of results satisfying some criteria

discover_product_types()

Fetch product types is disabled for StaticStacSearch

do_search([items_per_page])

Perform the actual search request.

format_free_text_search(**kwargs)

Build the free text search parameter using the search parameters

get_collections(**kwargs)

Get the collection to which the product belongs

get_product_type_def_params(product_type, ...)

Get the provider product type definition parameters

get_queryables(search_params)

Retrieve the metadata mappings that are query-able

map_product_type(product_type, **kwargs)

Map the eodag product type to the provider product type

normalize_results(results, **kwargs)

Build EOProducts from provider results

query([items_per_page, page, count])

Perform a search on a static STAC Catalog

update_metadata_mapping(metadata_mapping)

Update plugin metadata_mapping with input metadata_mapping configuration

Attributes

COMPLEX_QS_REGEX

DEFAULT_ITEMS_PER_PAGE

extract_properties

plugins