Environment: Win10 and GDAL 2.1.0 in the OSGEO4W shell, 64 bit. Edits made below.
I have temporary access to a whole-of-country dataset in ESRI's Arc/Info binary grid format, which according to this - http://www.gdal.org/frmt_various.html - should be supported by gdal. Its accessible through webDAV.
The whole dataset is about 200GB, but I only need a small portion of it, so i would like to use something like
gdal_translate -projwin_src EPSG:4283 -projwin xmin ymin xmax ymax src_dataset=http://user:pass@path_to_file/w1001001.adf dst_dataset=local_path
to get the portion I need. The command fails out with error 4 'failed to create temporary file', because I don't have write access to the remote location.
I've tried incorporating "--config CPL_TMPDIR local_folder" into the command, and I've tried setting it separately (set CPL_TMPDIR=local_path), but that doesn't seem to help much. The next problem is error 4: "local_folder\w1001001.adf is not recognised as a supported file format', which contradicts the documentation.
SOLVED: per comment below, one must use vsicurl, e.g.
gdal_translate --config CPL_TMPDIR D:\local_folder -projwin_srs EPSG:4283 -projwin ulx uly lrx lry /vsicurl/http://user:pass@webdav-url/w001001.adf D:\local_folder\output.tif
works on both tif and adf source files.