Skip to main content

Is it now possible to query geometry of any size? If yes, how does it work (is there an example)? If not, when will this be possible?

Hi @schorcht, can you be more specific with your question?

What do you mean “query”?

You will find an example on how to process the data per polygon:

d664cc1641fda69dcfceae3263dff8b2c47b0dd4.pngsentinel-hub.com
d3714e73b38a87afa3c31502a6696052a7395163.png


How can I clip the image to a specific polygon?



How can I clip the image to a specific polygon? You can add a parameter GEOMETRY as in given example. Simplify geometry to avoid exceeding maximum number of characters in URL.








The size of the request is limited to 5000x5000 px.


If you are referring to “character limit in the URL”, it is now possible to do with the new API. You will find examples here:

docs.sentinel-hub.com

API Reference



Sentinel Hub API Reference








Hi @gmilcinski,

thank you for your fast answer. I was referring to the character limit in the URL. I tested the new API and I got “<Response e200]>”. So far, so good.

1.) But how do I retrieve/access the data? I couldn’t find an example for that.

2.) What I am basically looking for is a FIS request (similar to that one: https://sentinelhub-py.readthedocs.io/en/latest/examples/fis_request.html ) but without “character limit in the URL”, i.e. with polygons that have many points. Is there something like that?

I guess not, because this page says the statistical analysis for the new API is still in development.



  1. You will find some examples here:
    https://docs.sentinel-hub.com/api/latest/reference/#operation/render

    (see Request sample on the right side, e.g. Javascript.




  2. Statistical API is indeed not yet implemented in the new API. However, existing FIS does actually support POST request already

    E.g. something along these lines:
    curl 'https://services.sentinel-hub.com/ogc/fis/<INSTANCE>' -H 'Accept: application/json, text/plain, */*' --compressed -H 'Content-Type: application/json;charset=utf-8' -H 'Connection: keep-alive' --data '{"layer":"NDVI_INDEX","crs":"EPSG:3857","time":"2019-01-01/2019-04-01","resolution":"10m","geometry":"<GEOMETRY>","maxcc":100}'




Works well for me. Thank you


Reply