revrt.utilities.cli.layers_from_file#
- layers_from_file(fp, _out_layer_dir, layers=None, profile_kwargs=None)[source]#
Extract layers from a layered file on disk
- Parameters:
fp (path-like) – Path to layered file on disk.
layers (
list, optional) – List of layer names to extract. Layer names must match layers in the fp, otherwise an error will be raised. IfNone, extracts all layers from theLayeredFile. By default,None.profile_kwargs (
dict, optional) – Additional keyword arguments to pass into writing each raster. The following attributes ar ignored (they are set using properties of the sourceLayeredFile):nodata
transform
crs
count
width
height
By default,
None.
- Returns:
list– List of paths to the GeoTIFF files that were created.