Skip to main content
Question

Setting Esri Shapefile name in Writer

  • January 7, 2016
  • 4 replies
  • 56 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

jdh
Contributor
Forum|alt.badge.img+40
  • 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+26
  • 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: