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.

2
  • Please provide enough code so others can better understand or reproduce the problem. Commented May 7, 2022 at 13:43
  • If even temp files are undesirable, consider using the rasterio library Commented May 8, 2022 at 14:37

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.