Skip to main content
Solved

Reading multiple GDBs in subfolders with multiple FCs (identical schema)

  • July 2, 2024
  • 1 reply
  • 26 views

alfons
Contributor
Forum|alt.badge.img+7

Hello

I have several GDBs with several FCs in different subdirectories. However, all GDBs have the same structure (same FC with identical attributes). I would like to merge all the data depending on the FC and then process it further in an existing workflow. 
Using the example, I was able to read and save all data, but it deleted all attributes and combined all FCs into one single FC.

 


My question now is how I could read all FCs with the same name from all GDBs, merge them in one FC and then process them further in an existing workflow.

Best answer by nielsgerrits

I think what you want is no generic outputport but an outputport for every featureclass, while reading multiple file geodatabases. This can work if the structure of all file geodatabases is the same.

Open FeatureReader_2, change Dataset from path_windows to one of the file geodatabases you want to read. Click OK to close the parameters. The schema will now be scanned and the FeatureReader will generate an outputport for each featureclass.

Now open the parameters again. Change “Regenerate” to “Never” and change Dataset to path_windows. Click OK to close the parameters. The outputports and the attributes will not change, but the features from the gdb’s found in the previous FeatureReader will be read.

 

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

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+53
  • Best Answer
  • July 2, 2024

I think what you want is no generic outputport but an outputport for every featureclass, while reading multiple file geodatabases. This can work if the structure of all file geodatabases is the same.

Open FeatureReader_2, change Dataset from path_windows to one of the file geodatabases you want to read. Click OK to close the parameters. The schema will now be scanned and the FeatureReader will generate an outputport for each featureclass.

Now open the parameters again. Change “Regenerate” to “Never” and change Dataset to path_windows. Click OK to close the parameters. The outputports and the attributes will not change, but the features from the gdb’s found in the previous FeatureReader will be read.

 


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