Learn R Programming

gdalraster (version 1.11.1)

vsi_supports_seq_write: Return whether the filesystem supports sequential write

Description

vsi_supports_seq_write() returns whether the filesystem supports sequential write. Wrapper for VSISupportsSequentialWrite() in the GDAL API.

Usage

vsi_supports_seq_write(filename, allow_local_tmpfile)

Value

Logical scalar. TRUE if sequential write is supported.

Arguments

filename

Character string. The path of the filesystem object to be tested.

allow_local_tmpfile

Logical scalar. TRUE if the filesystem is allowed to use a local temporary file before uploading to the target location.

See Also

vsi_supports_rnd_write()

Examples

Run this code
# Requires GDAL >= 3.6
if (as.integer(gdal_version()[2]) >= 3060000)
  vsi_supports_seq_write("/vsimem/test-mem-file.gpkg", TRUE)

Run the code above in your browser using DataLab