Subsets RIF or CIF files.
subsetXIF(
fileName,
write_to,
objects,
offsets,
fast = TRUE,
extract_features = FALSE,
endianness = .Platform$endian,
verbose = FALSE,
verbosity = 1,
overwrite = FALSE,
display_progress = TRUE,
add_tracking = TRUE,
...
)
It invisibly returns full path of exported file.
path of file to subset. It has to be a '.rif' or '.cif' file.
pattern used to export file.
Placeholders, like "%d/%s_fromR.%e", will be substituted:
-%d: with full path directory of 'fileName'
-%p: with first parent directory of 'fileName'
-%e: with extension of 'fileName' (without leading .)
-%s: with shortname from 'fileName' (i.e. basename without extension).
Exported file extension will be deduced from this pattern. It has to be the same as 'fileName', i.e. .cif or .rif.
integer vector, IDEAS objects ids numbers to use. If missing, the default, all objects will be used.
object of class `IFC_offset`. If missing, the default, offsets will be extracted from 'fileName'.
This param is not mandatory but it may allow to save time for repeated XIF export on same file.
whether to fast extract 'objects' or not. Default is TRUE.
Meaning that 'objects' will be extracted expecting that 'objects' are stored in ascending order.
Note that a warning will be sent if an 'object' is found at an unexpected order.
In such a case you may need to rerun function with 'fast' = FALSE.
If set to FALSE, all raw object_ids will be scanned from 'fileName' to ensure extraction of desired 'objects'.
IMPORTANT: whatever this argument is, features are extracted assuming an ascending order of storage in file.
whether to try to extract features. Default is FALSE. IMPORTANT: it is not clear if how features are stored and which objects they rely to when input file is already a merge or a subset. For this reason it should be carefully checked.
The endian-ness ("big" or "little") of the target system for the file. Default is .Platform$endian.
Endianness describes the bytes order of data stored within the files. This parameter may not be modified.
whether to display information (use for debugging purpose). Default is FALSE.
quantity of information displayed when verbose is TRUE; 1: normal, 2: rich. Default is 1.
whether to overwrite file or not. Default is FALSE.
Note that if TRUE, it will overwrite exported file if path of 'fileName' and deduced from 'write_to' arguments are different.
Otherwise, you will get an error saying that overwriting source file is not allowed.
Note also that an original file, i.e. generated by IDEAS(R) or INSPIRE(R), will never be overwritten.
Otherwise, you will get an error saying that overwriting original file is not allowed.
whether to display a progress bar. Default is TRUE.
whether to register files' paths and objects' ids in the exported file. Default is TRUE.
other arguments to be passed.
when 'extract_features' is set TRUE, only features stored in binary format will be extracted if found.
If the input 'fileName' is a merged of several files then features will be extracted from these files.
If these files can't be found, Warning(s) will be thrown and input 'fileName' will be extracted without features values.