0

I am using gdal.translate() to make the image but its saving the formed image on local machine, I don't want to save it anywhere in my local machine and use it on run time only without saving it.

1 Answers1

0

Use a /vsimem/ filename - the dataset will exist only in a temporary in-memory filesystem. You will be able to access it as a normal file from GDAL until the process termination.

https://gdal.org/user/virtual_file_systems.html#vsimem-in-memory-files

mmomtchev
  • 2,497
  • 1
  • 8
  • 23