Skip to main content

Hi

We need to allow users create a zipped shapefile with a single feature. The shapefile needs to be named as the reference for that feature (an attribute in the table)

I can create a zipfile by clicking the zip icon in the dataset field of the writer. However, this just creates a zipfile which is named after the folder it is saved in.

Is there a way to name the zipfile using an attribute? Or is there a way to automatically rename the zipfile?

 

Thanks

 

Yes, if you set up fanout on the writer you can achieve this. In the Navigator doubleclick on Fanout Expression under the Shape writer.

 

Then set the base directory and as Fanout Expression add the name of the zip file (using attribute values if you want), make sure to have it end with .zip

The value of _creation_instance is 0 so this results in a feature_0.zip file located in my D:\RED Academy\Output folder


Reply