Solved

Including existing files with the data download service

  • 11 January 2022
  • 3 replies
  • 13 views

Badge

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?

icon

Best answer by takashi 11 January 2022, 17:25

View original

3 replies

Userlevel 2
Badge +17

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. 

Badge +22

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

Userlevel 4
Badge +25

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