CS-SI / eodag-labextension

Jupyterlab extension for EODAG search
Apache License 2.0
18 stars 2 forks source link

Fix box search param name #17

Closed sbrunato closed 3 years ago

sbrunato commented 3 years ago

Current version generates code:

from eodag import EODataAccessGateway
dag = EODataAccessGateway()
product_type = 'S2_MSI_L1C'
footprint = {'lonmin': -0.439453, 'latmin': 41.963302, 'lonmax': 4.30664, 'latmax': 45.270763}
cloud_cover = 100
start, end = '2021-03-28', '2021-04-09'
search_results, estimated_total_nbr_of_results = dag.search(
  productType=product_type,
  box=footprint,
  start=start,
  end=end,
  cloudCover=cloud_cover,
)

and produces following warning:

'box' or 'bbox' parameters are only supported for backwards  compatibility reasons. Usage of 'geom' is recommended.

Replace box with geom to be compliant with current eodag version.

sbrunato commented 3 years ago

In GitLab by @ctriquet-cs on Apr 29, 2021, 09:58

assigned to @PhML

sbrunato commented 3 years ago

In GitLab by @ctriquet-cs on Apr 29, 2021, 09:59

changed the description

sbrunato commented 3 years ago

In GitLab by @ctriquet-cs on Apr 29, 2021, 10:00

Duplicates #16