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.
-
Please provide enough code so others can better understand or reproduce the problem.Community– Community Bot2022-05-07 13:43:22 +00:00Commented May 7, 2022 at 13:43
-
If even temp files are undesirable, consider using the rasterio libraryPaul H– Paul H2022-05-08 14:37:00 +00:00Commented May 8, 2022 at 14:37
Add a comment
|
1 Answer
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