Error writing search results to GeoJson using eodag-sentinelsat provider
ahuarte47 opened this issue · 2 comments
ahuarte47 commented
Serialization of search results does not take care of Date/Datetime objects in metadata of Products fetched.
It might be an edge case but it might be interesting to fix it.
Error
TypeError: Object of type datetime is not JSON serializable
Install sentinelsat plugin
python -m pip install eodag
python -m pip install eodag-sentinelsat
Configure 'scihub' provider with highest priority.
Code To Reproduce
CLI command:
eodag -vvv search --conf "eodag-user_conf.yml" --box .... --all --storage "my_search.geojson"
Environment:
- Python version: 3.7.4 on Windows 10
- EODAG version: 2.2.0
Additional context:
Using CS-SI/eodag#235 to configure the settings of this provider in an user configuration file.
sbrunato commented
Thanks for pointing out this issue.
The problem is that eodag-sentinelsat
uses datetime
objects to store date metadata. We must use ISO-8601 str like for other providers instead
ahuarte47 commented
Thank you very much to everyone!