Skip to main content
Solved

Looping (batching ? may be the word to use here) through feature classes in a .gdb

  • January 31, 2023
  • 2 replies
  • 24 views

joneszero
Contributor
Forum|alt.badge.img+6

Hi, I've a workspace where I process a series of point feature classes within a single geodatabase (see pic). I'm manually adding/removing connectors to process each feature class on it's own, however, I'd like to simply run the process once and it loops through ALL of the features.

I've experimented with the Directory and File Pathnames Reader, however from what I can tell it only processes multiple files within a directory NOT a a geodatabase and the features within.

Any thoughts would be appreciated.

Best answer by redgeographics

You can simply connect all of your input feature types. Based on what you're saying it looks like they all have the same attribute structure so there's no need to adapt the process itself. If you do need to know which feature type a feature belongs to you can check the internal attribute fme_feature_type.

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

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • Best Answer
  • January 31, 2023

You can simply connect all of your input feature types. Based on what you're saying it looks like they all have the same attribute structure so there's no need to adapt the process itself. If you do need to know which feature type a feature belongs to you can check the internal attribute fme_feature_type.


joneszero
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 12 replies
  • January 31, 2023

Goodness, that simple.

I didn't think to do that, I feel like a goose.

Thank you