Skip to main content
Solved

Including existing files with the data download service


Forum|alt.badge.img

data download attribute file writerThe result of my workspace is several geojson files. For usability purposes, I want to include a fixed template .qgz file which is already on the server in the zip, so end users can immediately open it in QGis.

However, I can't find a way to get this to work with the Data Download service.

As a proof of concept, I created a minimal example that just loads a binary file, and writes it again. However, the AttributeFileWriter can't be selected as a Writer output for the Data Download service.

 

Is there another way to include arbitrary binary files with data download?

Best answer by takashi

Hi @arjanboogaart​ , try using the File Copy writer to copy the existing file to any location, and including the writer in download when publishing the workspace to the FME Server. 

View original
Did this help you find an answer to your question?

3 replies

takashi
Contributor
  • Best Answer
  • January 11, 2022

Hi @arjanboogaart​ , try using the File Copy writer to copy the existing file to any location, and including the writer in download when publishing the workspace to the FME Server. 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • January 11, 2022

This article is for older versions of FME, but as far as I know, it is still the current practice.

 

https://community.safe.com/s/article/including-additional-files-in-the-data-download-re


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • January 17, 2022

In case it helps, I picked this as one of our questions of the week and covered it here: https://www.youtube.com/watch?v=ZvSaHQ7gouI&t=1170s


Reply


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