Question

How do I write two different file formats to one zip file?

  • 28 September 2016
  • 4 replies
  • 8 views

Userlevel 3
Badge +13


4 replies

Userlevel 3
Badge +13

If you are using traditional writers, then I believe it's as easy as specifying the same zip file name for both Writer's dataset parameter.

It definitely works this way for the FeatureWriter. Here is an example:

write-to-the-same-zip-file.fmw

Userlevel 3
Badge +13

Also check out https://knowledge.safe.com/articles/673/zip-your-output-with-fme.html -- you can use this technique and have multiple traditional writers where you specify the same path to a zip file and then even different directories inside that zip file where the output will be placed. For example:

Your textfile writer might have its output dataset as c:\\temp\\package.zip\\readme.txt

In the same workspace, your shape writer would have: c:\\temp\\package.zip\\roads

And your XML writer would have: c:\\temp\\package.zip\\metadata\\roads.xml

One zip file would be created, and within it, the data would live in the subidirectories specified. Cool.

Badge

If you are using traditional writers, then I believe it's as easy as specifying the same zip file name for both Writer's dataset parameter.

It definitely works this way for the FeatureWriter. Here is an example:

write-to-the-same-zip-file.fmw

Missing link here. Could you please send it again? Thanks in advance!!!

Userlevel 2
Badge +14

Missing link here. Could you please send it again? Thanks in advance!!!

Hi @tono​ I've fixed the link.

Reply