vsi_supports_rnd_write {gdalraster} | R Documentation |
Return whether the filesystem supports random write
Description
vsi_supports_rnd_write()
returns whether the filesystem supports
random write.
Wrapper for VSISupportsRandomWrite()
in the GDAL API.
Usage
vsi_supports_rnd_write(filename, allow_local_tmpfile)
Arguments
filename |
Character string. The path of the filesystem object to be tested. |
allow_local_tmpfile |
Logical scalar. |
Value
Logical scalar. TRUE
if random write is supported.
Note
The location GDAL uses for temporary files can be forced via the
CPL_TMPDIR
configuration option.
See Also
Examples
# Requires GDAL >= 3.6
if (as.integer(gdal_version()[2]) >= 3060000)
vsi_supports_rnd_write("/vsimem/test-mem-file.gpkg", TRUE)
[Package gdalraster version 1.11.1 Index]