Skip to main content
Question

Iterating through a SDE, adding a field, moving existing values, and then dropping original values.

  • July 21, 2023
  • 1 reply
  • 9 views

kristen
Contributor
Forum|alt.badge.img+3

I have situation wherein I need to add fields to all the feature classes within a SDE. I cannot seem to figure out how to loop through the SDE, and operate on one feature class at a time, though. My first thought was to generate a list of all the feature classes in the SDE using two FeatureReaders, but then I was not sure how I would iterate through that list.

 

Any assistance would be greatly appreciated. Thanks!

1 reply

ctredinnick
Supporter
Forum|alt.badge.img+18
  • Supporter
  • July 22, 2023

Often with FME if you think you need to iterate, you haven't figured how to do it without iterating.

Seems like all you need is to have a Feature Reader on the database, from the schema port test that the field is not in the schema, and then an arcpy script to alter the layer to add the field.


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