check_output_format: Check the file extension of the output file to see if it is...

View source: R/file-extensions.R

check_output_formatR Documentation

Check the file extension of the output file to see if it is the same as the 'raster_format' or 'vector_format' settings. If a raster, such as a GeoTIFF is output directly from a SAGA-GIS tool but the raster format is set to SAGA, then this might work depending on the saga version but Rsagacmd will not know how to read the file.

Description

Check the file extension of the output file to see if it is the same as the 'raster_format' or 'vector_format' settings. If a raster, such as a GeoTIFF is output directly from a SAGA-GIS tool but the raster format is set to SAGA, then this might work depending on the saga version but Rsagacmd will not know how to read the file.

Usage

check_output_format(x, raster_format, vector_format)

Arguments

x

a 'parameter' object that is an output parameter of a tool.

raster_format

the raster format.

vector_format

the vector format.


Rsagacmd documentation built on Oct. 16, 2023, 5:06 p.m.