Saving the OGC request Data by a specific name

Hello,

I am using OGC request to download and save the data in my system. However it creates a default folder and then save every file by the name of response.tiff.

Is there a way to save that image by a defined name?

Hi @jagriti,

Technically, it is possible to customise the name of the response file but it is meant as an advanced functionality. If you would like do this then please note that you would need to ensure the uniqueness of the new name so that multiple requests won’t write into the same file.

Here’s an example script for WMS requests:

request = WmsRequest( ... )

request.download_list[0].filename = 'my-new-unique-name.tiff'

request.save_data()

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.