geofileops.unzip_geofile#
- geofileops.unzip_geofile(input_path: str | PathLike[Any], output_path: str | PathLike[Any]) Path#
Unzip a zipped geofile and return the path to the unzipped geofile.
The zip file should contain a single geofile. If the file contains a single file, that file is returned. If it contains multiple files, the geofile is determined based on the file extension. If multiple geofiles are found, an error is raised.
Added in version 0.11.0.
- Parameters:
input_path (PathLike) – the zip file to unzip.
output_path (PathLike) – the output directory.
- Returns:
The path to the unzipped geofile in the destination directory.
- Return type:
Path