Skip to main content
Question

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

  • September 28, 2016
  • 4 replies
  • 79 views

fmelizard
Contributor
Forum|alt.badge.img+17

4 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Author
  • Contributor
  • September 28, 2016

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


fmelizard
Contributor
Forum|alt.badge.img+17
  • Author
  • Contributor
  • September 29, 2016

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.


tono
Contributor
Forum|alt.badge.img+11
  • Contributor
  • September 8, 2020
fmelizard wrote:

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!!!


LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • September 16, 2020
tono wrote:

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

Hi @tono​ I've fixed the link.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings