Hi @ygutfreund
You'd do it in the same way that a feature type fanout is done - by selecting an attribute in the dataset parameter:
Yes, you can configure dataset fanout through the Dataset field in the FeatureWriter. For example, if the destination file path consists of these elements, the setting shown in the following screenshot is possible.
- Root folder path: a user parameter called "outDir"
- Zoom level (z): a feature attribute called "_zoom_level" - folder name
- Tile column index (x): a feature attribute called "_tile_column" - subfolder name
- Tile row index (y): a feature attribute called "_tile_row" - filename without extension
You can enter the expression to the Dataset field using Text Editor, or directly.
$(outDir)/@Value(_zoom_level)/@Value(_tile_column)
I have a follow up question for that! Would it be possible to create zipped folder with the same folderstructe? I can do it with a normal PNG writer and fanout, but when I try with featurewriter I only get the tiles directly into the zipped folder.
I have a follow up question for that! Would it be possible to create zipped folder with the same folderstructe? I can do it with a normal PNG writer and fanout, but when I try with featurewriter I only get the tiles directly into the zipped folder.
In the example above, you can set a zip file path to the "outDir" parameter to save the folder structure into a zip file.