FME can write output datasets directly into a zip folder. This is useful for when the output needs to be compressed to a smaller storage size, or when a folder-based dataset (such as Shape) is comprised of several files that need to be stored together.
Defining a zipped output dataset is as simple as setting a .zip
extension in the output dataset name. For convenience, when the chosen format supports this feature, a Zip button is displayed beside the Dataset parameter.
.zip
extension, or click the Zip button:
The Zip button automatically adds the .zip
extension to the Dataset parameter.
Formats that support multiple file extensions may require that you specify a file extension following the zip filename.
.dwg
datasets inside the zip file. To write .dxf
files instead, enter filename.zip\filename.dxf
as the Dataset parameter.
The Generic Writer integrates with zip writing by creating a zip file that contains any specified file/folder format.
Dataset Fanout integrates with zip writing by allowing you to write multiple datasets to the same zip file. To create a fanned-out zip file, simply ensure that the Fanout Directory parameter ends with the .zip
file extension.
Note: You cannot create multiple zip files using Dataset Fanout (therefore, you cannot set the Fanout Suffix parameter to .zip
).
Writing a password-protected zip file is not currently supported.