1

As mentioned in the FAQ about OData API usage I can perform such queries to search Sentinel-2 scenes:

https://scihub.copernicus.eu/dhus/odata/v1/Products?$format=json&$filter=startswith(Name,'S2') and ContentDate/Start ge datetime'2018-08-25T00:00:00' and ContentDate/End le datetime'2018-08-26T00:00:00'

But I still don’t understand how to add footprint search parameter into this query, because there is no clean examples in the FAQ, only mentioned /Products properties:

ContentGeometry footprint polygon coordinates in GML format

I am asking for few examples how to query Sentinel-2 scenes using point/polygon coordinates with ODATA API.

  • 1
    Have you tried to add in the end of the query : and ContentGeomety '<gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0,0 100,0 100,100 0,100 0,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon>' ? – J. Monticolo Apr 2 at 13:29
  • @J.Monticolo I recive this: "Invalid filter expression: 'startswith(Name,'S2') and ContentDate/Start ge datetime'2018-08-25T00:00:00' and ContentDate/End le datetime'2018-08-26T00:00:00' and ContentGeomety '<gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0,0 100,0 100,100 0,100 0,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon>''." – Mr. Che Apr 3 at 4:21
  • @J.Monticolo If you are an ODATA API user please give examples of how you request scenes by coordinates. – Mr. Che Apr 3 at 4:24
  • I'm not an ODATA user, I just had a look to the syntax and tried to guess how it could be work. – J. Monticolo Apr 3 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.