maawoo / ARDCube

Utility to create Analysis Ready (Earth Observation) Data Cubes
GNU General Public License v3.0
5 stars 0 forks source link

Simplify geometry for downloading Sentinel-1 data via sentinelsat #2

Closed maawoo closed 3 years ago

maawoo commented 3 years ago

Using the geometry for the state of Thuringia results in the following error: sentinelsat.sentinel.SentinelAPIError: HTTP status 500 Internal Server Error: RemoteSolrException : Error from server at http://172.30.175.85:8983/solr/dhus: non ok status: 414, message:Request-URI Too Long

Same query with a simple geometry on the other hand works. Relevant: https://github.com/sentinelsat/sentinelsat/issues/333

It would be nice if the complex geometry is automatically simplified in this case (also because the error message is really unclear for the user). In the meantime, the easiest solution is probably to just use the bounding box of the geometry.