Skip to main content
Solved

Enable user to select which dataset to read


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.

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

2 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • 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


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