Skip to main content
Question

Setting Esri Shapefile name in Writer


ceciliac

I am using Workspace runner to clip several shape files. I have created a Published parameter (Filename (Output) - ESRI_SHAPE. The ESRI shape writer that i am using is using a destination folder and I would like to change to Destination ESRI shape file.

4 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • January 7, 2016

The way the esri shapewrite works is that the DestDataset_ESRISHAPE is a folder, and the name of the shapefile comes from the feature type. Either dynamically from the fme_feature_type or set explicitly on your feature type.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • January 7, 2016

There area couple of way sto do that.

For instance you can use a scipted one like this

DestDataset_SHAPE =

$FME_MacroValues(Dir_out)\\\\$FME_MacroValues(File_Out)

Dir_out and File_Out are your published parameters.


Forum|alt.badge.img+5
  • January 7, 2016

Shapefiles fanout on the writer will create a new shapefile per fanout unique name, like a group by. If you need to create a new folder for each shapefile output you need to use fanout dataset in the advanced section.

If I understand your question correctly then change the feature type name in the writers options to your published parameter. That should name each shapefile accordingly.


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • January 7, 2016

The filename can be defined in the Feature Types Properties using a published parameter or an attribute. This image shows where to look:


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