BBOX and GEOMETRY query structure

Hello to everyone!

I have the next doubt, in the docs it is said for BBOX one must give the four coordinates representing the top-left and bottom-right of the bounding box and must be separated by commas. Required. Example: BBOX=-13152499,4038942,-13115771,4020692. And that the GEOMETRY must be WKT, WKB, or a list of coordinate pairs representing a polygon (pairs separated by semicolons, components by comma, i.e. 1,1;2,2;…) .

The thing is that it does not specifies order of XY coordinates, I mean must use long, lat pairs or lat, long? also when I use the formats stated above the WMS query fails and it only works if I use top-right and bottom-left corners for BBOX as “LAT,LON,LAT,LON” and for GEOMETRY I must give something like this “POLYGON((LAT LON, LAT LON, LAT LON, LAT LON, LAT LON, ))” those formats are stated in the FAQ section too.

So my main questions is which is the right way to do dose queries?

Kind regards and thanks!

This (unfortunately) depends on the CRS. Set of rules, which we have inherited from Open GIS Consortium standards…
Check this:
https://www.sentinel-hub.com/faq/why-result-different-when-i-am-using-wms-or-wcs-when-coordinate-system-epsg4326

About 5 years later I stumble upon this. I used the example here: https://docs.sentinel-hub.com/api/latest/data/sentinel-2-l2a/examples/, and I was wondering what lines of latitude/longitude the “bbox” array had. After 20 minutes of testing by increasing the size of the bounding and getting an image returned large enough to see where on earth the pic was (France), it turns out the example bbox ordered as long, lat, long, lat.

I wish that page I mentioned the order I found out. And that the API reference for the process API mentioned how to find it. The center of this picture shows the bbox parameter being insufficiently documented:

@gmilcinski Could you expand on how we can use the CRS to find the order of the bbox array? Say the first link I linked, https://docs.sentinel-hub.com/api/latest/data/sentinel-2-l2a/examples/, has "crs": "http://www.opengis.net/def/crs/OGC/1.3/CRS84". Now what?

@gmilcinski @chung.horng any idea? Not important for me since I am using CRS84 and figured that out. But curious how one would find the order meaning for other CRS’s.

Hi @antwallolive ,

Let say you’re using EPSG:4326, you’ll able to find the order on epsg.io (EPSG:4326).

The order of the 2 latitude and 2 longitude lines? I looked around but could not find anything of that sort on the site.

Hmm, that is vague…just says WGS bounds. Just some numbers without being labelled longitude or latitude. Wish the sentinel api reference I linked above linked to that website and said to follow the order of the bounds.

Thank you for your advice. We will keep improving the documentation.

Forgot to link the doc pag that should be updated about bbox btw, it is here: https://docs.sentinel-hub.com/api/latest/reference/#tag/process/operation/process

You then click on “input” to expand it. Then expand “bounds” and the bbox parameter will be shown. The bbox parameter should also be explained fully on this page that is linked next to the “evalscript” parameter: https://docs.sentinel-hub.com/api/latest/evalscript/v3/

Picture showing both parameters:

@chung.horng pinging in case you were not notified