Skip to main content
Solved

Naming of zipped shapefile using user parameter

  • September 12, 2024
  • 1 reply
  • 24 views

markcoopersdc
Contributor
Forum|alt.badge.img+6

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

 

Best answer by redgeographics

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

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

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • September 12, 2024

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


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