Skip to main content
Solved

Iterate through individual GDBs and Merge FCs with same name

  • November 30, 2023
  • 2 replies
  • 41 views

galigis
Enthusiast
Forum|alt.badge.img+20

Hi All,

 

I'm trying to create a workflow that iterates through a folder which contains individual GDBs (e.g. 20 individual GDBs) and then merges the Feature Classes with the same name into a new blank GDB.

Any idea how to make that happen?

Thanks 🙂

 

Best answer by takashi

Hi @galigis ,

You can read all the *.gdb folder paths from the folder with Directory and File Pathnames reader (PATH), read all the features from the gdb datasets with FeatureReader, and write them into a single gdb dataset with a gdb writer using Dynamic Schema setting. Send the schema features output from the <Schema> port of the FeatureReader to the destination writer as schema definition features.

The workflow looks like this.

workflowdynamic-writer-setting

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

takashi
Celebrity
  • Best Answer
  • December 1, 2023

Hi @galigis ,

You can read all the *.gdb folder paths from the folder with Directory and File Pathnames reader (PATH), read all the features from the gdb datasets with FeatureReader, and write them into a single gdb dataset with a gdb writer using Dynamic Schema setting. Send the schema features output from the <Schema> port of the FeatureReader to the destination writer as schema definition features.

The workflow looks like this.

workflowdynamic-writer-setting


galigis
Enthusiast
Forum|alt.badge.img+20
  • Author
  • Enthusiast
  • December 1, 2023

Hi @galigis ,

You can read all the *.gdb folder paths from the folder with Directory and File Pathnames reader (PATH), read all the features from the gdb datasets with FeatureReader, and write them into a single gdb dataset with a gdb writer using Dynamic Schema setting. Send the schema features output from the <Schema> port of the FeatureReader to the destination writer as schema definition features.

The workflow looks like this.

workflowdynamic-writer-setting

Bravo. It worked! :)