Multiple image request and every taken date by WMTS

Here is what I am trying to do and hope to know how to do.

Requesting the most recent 7 imageries by WMTS to show on the same web page.
How is “the most recent 7 imageries” possible?

No requesting of the imageries taken in the specific date nor time range.
Just need most recent 7 imageries.

Need to know every taken date of that responded imageries to show on the web page.
How is it possible?

The best option would be to use the Catalogue functionality to get the relevant dates, see this example:

Alternate option is to use WFS set MAXCC=100, TIME parameter to e.g. 3 months (7 images is about 1.5 months, so 3 months should be more than sufficient) and MAXFEATURES=7.

After you have the relevant dates, you simply construct the WMTS requests setting the TIME parameter to the appropriate date, e.g. TIME=2020-11-16/2020-11-16.

@gmilcinski In case of WFS, is it possible to get relevant dates with better output format and automatically put it into WMTS request without user operation? I tried WFS way that you kindly advice me and get JSON file downloaded. If there are some ways that is not needed to open and read the downloaded file to find the relevant dates, that is so helpful.
My web application is very simple.
(1) click satellite view link
(2) show 7 most recent satellite images with 7 taken dates.

The API, as it is commonly so, returns one output. If you really wanted, you could configure our process API in a way to return a multi-part response, e.g. 7 images packed in the GZIP. But I do not think this would help you much.

For the use-case describe, you will have to implement this part on the web-application level. There is no need for user to do anything as the process can be automatic. It has to be implemented by you though, e.g. in JavaScript:
-you first trigger WFS to get dates
-then construct a web-site with appropriate image SRCs-es.

1 Like