geofileops.rename_layer#
- geofileops.rename_layer(path: Union[str, PathLike[Any]], new_layer: str, layer: Optional[str] = None)#
Rename the layer specified.
- Parameters:
path (PathLike) – The file path.
layer (Optional[str]) – The layer name. If not specified, and there is only one layer in the file, this layer is used. Otherwise exception.
new_layer (str) – The new layer name. If not specified, and there is only one layer in the file, this layer is used. Otherwise exception.