question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onda: error with the geometry parameter

See original GitHub issue

The geometry passed to onda doesn’t seem to work anymore, try for instance the following request (cuont request) made to onda in its end to end test:

https://catalogue.onda-dias.eu/dias-catalogue/Products?productType=S2MSI1C&$format=json&$search="footprint:"Intersects(POLYGON ((0.2564 43.1956%2C 0.2564 43.9078%2C 2.3798 43.9078%2C 2.3798 43.1956%2C 0.2564 43.1956)))" AND productType:S2MSI1C AND beginPosition:[2021-03-12T00:00:00.000Z TO *] AND endPosition:[* TO 2021-03-19T00:00:00.000Z]"

The returned error is:

"Error from server : Unable to parse shape given formats \"lat,lon\", \"x y\" or as WKT because java.text.ParseException: java.lang.UnsupportedOperationException: Unsupported shape of this SpatialContext. Try JTS or Geo3D. input: POLYGON ((0.2564 43.1956, 0.2564 43.9078, 2.3798 43.9078, 2.3798 43.1956, 0.2564 43.1956))"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
remi-brauncommented, Mar 23, 2021
  • Point geometry:
2021-03-23 08:07:55,412-15s eodag.core                       [INFO    ] (core             ) Searching product type 'S2_MSI_L1C' on provider: onda
2021-03-23 08:07:55,412-15s eodag.core                       [DEBUG   ] (core             ) Using plugin class for search: ODataV4Search
2021-03-23 08:07:55,412-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Mapping eodag product type to provider product type
2021-03-23 08:07:55,412-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Getting provider product type definition parameters for S2_MSI_L1C
2021-03-23 08:07:55,412-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Building the query string that will be used for search
2021-03-23 08:07:55,412-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Retrieving queryable metadata from metadata_mapping
2021-03-23 08:07:55,412-15s eodag.plugins.search.qssearch    [INFO    ] (qssearch         ) Sending count request: https://catalogue.onda-dias.eu/dias-catalogue/Products/$count?productType=S2MSI1C&$search=%22footprint:%22Intersects%28POINT%20%287.0456%2048.2417%29%29%22%20AND%20productType:S2MSI1C%20AND%20beginPosition:[2021-01-13T00:00:00.000Z%20TO%20%2A]%20AND%20endPosition:[%2A%20TO%202021-02-25T00:00:00.000Z]%20AND%20locations:%7B%27s2_tiles_centroids%27:%20%2732ULU%27%7D%22
2021-03-23 08:07:55,529-15s eodag.plugins.search.qssearch    [ERROR   ] (qssearch         ) Skipping error while counting results for onda ODataV4Search instance: [b'{"error":{"code":null,"message":"Exception during tokenizer creation with message \'Forbidden character in state PHRASE->{\'."}}']
Traceback (most recent call last):
  File "C:\Users\rbraun\Anaconda3\envs\eodownload\lib\site-packages\eodag\plugins\search\qssearch.py", line 610, in _request
    urllib_response = urlopen(prep.url)
  File "C:\Users\rbraun\Anaconda3\envs\eodownload\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Users\rbraun\Anaconda3\envs\eodownload\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Users\rbraun\Anaconda3\envs\eodownload\lib\urllib\request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Users\rbraun\Anaconda3\envs\eodownload\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "C:\Users\rbraun\Anaconda3\envs\eodownload\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "C:\Users\rbraun\Anaconda3\envs\eodownload\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: 
  • Polygon geometry:
2021-03-23 08:06:13 - [INFO] - Querying L8_OLI_TIRS_C1L1 products.
2021-03-23 08:06:13,154-15s eodag.core                       [INFO    ] (core             ) Searching product type 'L8_OLI_TIRS_C1L1' on provider: onda
2021-03-23 08:06:13,154-15s eodag.core                       [DEBUG   ] (core             ) Using plugin class for search: ODataV4Search
2021-03-23 08:06:13,154-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Mapping eodag product type to provider product type
2021-03-23 08:06:13,154-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Getting provider product type definition parameters for L8_OLI_TIRS_C1L1
2021-03-23 08:06:13,154-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Building the query string that will be used for search
2021-03-23 08:06:13,154-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Retrieving queryable metadata from metadata_mapping
2021-03-23 08:06:13,155-15s eodag.plugins.search.qssearch    [INFO    ] (qssearch         ) Sending count request: https://catalogue.onda-dias.eu/dias-catalogue/Products/$count?platform=Landsat-%2A&$search=%22footprint:%22Intersects%28POLYGON%20%28%28-0.9570%2043.6241%2C%20-1.2143%2043.6305%2C%20-1.2127%2043.6866%2C%20-0.8368%2043.8658%2C%20-0.7765%2043.8667%2C%20-0.7765%2043.7476%2C%20-0.9570%2043.6241%29%29%29%22%20AND%20platformName:Landsat-%2A%20AND%20beginPosition:[2021-02-01T00:00:00.000Z%20TO%20%2A]%20AND%20endPosition:[%2A%20TO%202021-03-23T08:06:12.000Z]%22
2021-03-23 08:06:13,355-15s eodag.plugins.search.qssearch    [INFO    ] (qssearch         ) Sending search request: https://catalogue.onda-dias.eu/dias-catalogue/Products?platform=Landsat-%2A&$format=json&$search=%22footprint:%22Intersects%28POLYGON%20%28%28-0.9570%2043.6241%2C%20-1.2143%2043.6305%2C%20-1.2127%2043.6866%2C%20-0.8368%2043.8658%2C%20-0.7765%2043.8667%2C%20-0.7765%2043.7476%2C%20-0.9570%2043.6241%29%29%29%22%20AND%20platformName:Landsat-%2A%20AND%20beginPosition:[2021-02-01T00:00:00.000Z%20TO%20%2A]%20AND%20endPosition:[%2A%20TO%202021-03-23T08:06:12.000Z]%22&$top=500&$skip=0
2021-03-23 08:06:13,559-15s eodag.plugins.search.qssearch    [DEBUG   ] (qssearch         ) Adapting 0 plugin results to eodag product representation
2021-03-23 08:06:13,559-15s eodag.core                       [INFO    ] (core             ) Found 0 result(s) on provider 'onda'
1reaction
maximltcommented, Mar 22, 2021

Would you happen to have the URL that returned this error? It’s displayed in the logs when you set it (set_logging(verbose=3)).

It seems that onda hasn’t yet completely recovered from the OVH issue. But we also fixed a bug in EODAG where the locations parameter was wrongly propagated as a special query kwarg (#186).

Read more comments on GitHub >

github_iconTop Results From Across the Web

GEE Error: Provide 'geometry' parameter when aggregating ...
My end goal is to get one polygon with one value that will be the mean precipitation for a given polygon in specific...
Read more >
Required parameters are missing or of wrong types
Meaning: A required parameter is missing or the parameter is the wrong type. The wrong information is being passed to the routine. Recovery:...
Read more >
Mesh incompatible error when changing geometry parameter ...
Hi,nI'm trying to do a parametric study using Fluent. I imported my Solidworks model to Spaceclaim and used the pull function to set...
Read more >
Feature.GetShape error: "The geometry parameter wa...
Solved: Hello all, I'm building a dockpane with two datagrids that collect user features from user input in a mapview.
Read more >
HTab Parameter Error
1. Open the geometry file by clicking on the Geometry Button within the HEC-RAS interface: 2. Open the HTab Parameters Editor within the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found