Skip to main content
Solved

How to batch process feature layers in an ArcGIS Online account

  • September 22, 2020
  • 2 replies
  • 89 views

damian6105
Participant
Forum|alt.badge.img

Hi, I have and ArcGIS Online account containing around 100 directories (Sp1, Sp2, Sp3,...). Each directory contains a feature layer (Sp1_WFL, Sp2_WFL, Sp3_WFL,...). I'm trying to figure out how to create an FME script that will batch process all of my feature layers. At the moment I want to add a new field to each of my feature layers and populate the field with a particular value. I recently watched an FME webinar that suggested using a DIRECTORY AND FILE PATHNAMES reader and a WORKSPACERUNNER transformer however I can't seem to get it to work. Is this the best option to use for batch processing in ArcGIS Online? If anyone could get me started I would really appreciate it.

Regards, Damian

Best answer by chrisatsafe

Hi @damian6105​ ,

 

The Directory and File Pathnames is only for local files so you'd need to have a mapped drive to AGOL (similar to a mapped Google Drive or Dropbox) in order for that to work. I don't believe that is an option yet. However, something like this should be possible using the ArcGISOnlineConnector and a FeatureReader. Try looking into the ArcGISOnlineConnector and setting the feature service parameter based on the Name attribute that is created by the  ArcGISOnlineConnector. 

 

You'll need to have a value like this as your Feature Service parameter:

username@Value(_full_path)@Value(_name)

You should only have to set the username as your AGOL username (i.e. user content folder). The remainder of the path will be dynamically set by the attribute values for _full_path and _name value AGOL

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

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • September 22, 2020

Hi @damian6105​ ,

 

The Directory and File Pathnames is only for local files so you'd need to have a mapped drive to AGOL (similar to a mapped Google Drive or Dropbox) in order for that to work. I don't believe that is an option yet. However, something like this should be possible using the ArcGISOnlineConnector and a FeatureReader. Try looking into the ArcGISOnlineConnector and setting the feature service parameter based on the Name attribute that is created by the  ArcGISOnlineConnector. 

 

You'll need to have a value like this as your Feature Service parameter:

username@Value(_full_path)@Value(_name)

You should only have to set the username as your AGOL username (i.e. user content folder). The remainder of the path will be dynamically set by the attribute values for _full_path and _name value AGOL


damian6105
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • September 23, 2020

Great, thanks for that Chris. I implemented your suggestion and it successfully iterated through all the folders in my AGOL account.

Sincerely, 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