Skip to main content
Solved

Enable user to select which dataset to read

  • May 15, 2020
  • 2 replies
  • 45 views

damian6105
Participant
Forum|alt.badge.img

Dear FME Community

I have 70 different species datasets - Species 1, Species 2, Species 3, ..., Species 70. Each dataset is stored in ArcGIS Online. I want to write each dataset to Shapefile. I am trying to create a reader / parameter that will enable me to pick a single species to write to shapefile when I run the FME script. Can anyone assist please?

The ArcGIS Online reader requires the following parameters for each species:

Feature Service : MyFolder/Species 1/Species 1_WFL

Layer: Species_1

Regards, Damian

 

Best answer by erik_jan

This can be done using Published parameters (in your case a Choice or Choice with Alias).

These articles give a good overview what to do with Published Parameters:

https://knowledge.safe.com/articles/1287/published-parameter-examples.html

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_DataInspector/Workbench/Running_a_Workspace_with_Published_Parameters.htm

https://knowledge.safe.com/articles/920/concatenating-or-combining-published-parameters.html

Hope this helps getting started.

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.

2 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Best Answer
  • May 15, 2020

damian6105
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • May 16, 2020

Thanks @erik_jan. I figured out a solution. For the benifit of other newbs like me I created two published parameters (choice with alias), one for my feature service, one for my layer. Using a Feature Reader transformer, I put the feature service parameter in 'Feature Service' field and my layer parameter into "Feature types to read' field. I then connected my shape file writer to 'Generic' output port of the Feature Reader transformer.

Cheers, Damian