How can I open a file in GDAL from a SMB (or CIFS) server without storing the file in memory?
I want to do something like this:
import smbclient
from osgeo import gdal
with smbclient.open_file('//server/input.tif', username='user', password='pass', mode='rb') as f:
gdal.Translate(f, 'output.tif')
I have seen some example using f.read()
, but that loads entire file into memory.