I need to make an inventory of the GIS data my organization has. As a first step, I need to make a list of the names of the Feature Classes in each of our File Geodatabases.
Is there a way to extract a list of the Feature Class names (not the attributes or schema) from a File Geodatabase(s) to Excel using FME?
I know how to do this in python in ArcGIS Pro, but given I am relatively new to FME, I thought I would try it in FME.
Best answer by nielsgerrits
One way to do this I use a FeatureReader (initiaded by a Creator) with the format "Esri Geodatabase (File Geodb)" and select the parameter "Schema Features" under Schema/Data Features. This will return a schema feature for each Feature Class in a GDB. When you want to find all .gdb's in a directory you can use a Directory and File Pathnames FeatureReader and feed the resulting paths in the next FeatureReader. Sample workspace attached.
As an alternative you can do this as well using python in a PythonCaller.
One way to do this I use a FeatureReader (initiaded by a Creator) with the format "Esri Geodatabase (File Geodb)" and select the parameter "Schema Features" under Schema/Data Features. This will return a schema feature for each Feature Class in a GDB. When you want to find all .gdb's in a directory you can use a Directory and File Pathnames FeatureReader and feed the resulting paths in the next FeatureReader. Sample workspace attached.
As an alternative you can do this as well using python in a PythonCaller.
Set the Dataset to an outputfolder, use the MDB filename attribute in the path
Can you please have a look
Thanks
Remove the AttributeExposer and the Sorter, you do not need those.
Connect the Schema outputport from the FeatureReader to the same inputport in the FeatureWriter. The schema feature carries the schema, column names and types, geometry type.
In the FeatureWriter, update the path to something like
Remove the AttributeExposer and the Sorter, you do not need those.
Connect the Schema outputport from the FeatureReader to the same inputport in the FeatureWriter. The schema feature carries the schema, column names and types, geometry type.
In the FeatureWriter, update the path to something like
Followed the steps and did the changes and got the results in different way
feature classes were not created instead a schema layer created and asking spatial relation
Ah now I see, the sample you used was to get the schema's. You want to do the data. So you need to change the FeatureReader's format from Schema (Any Format) to Esri Geodatabase (Personal Geodb).
Here I am again. :) Created a new sample workspace for you. You should only have to change the input, the output and the FeatureReader to personal geodatabase mdb, I do not have 32 bit FME installed so I can't select that one now.
I added AttributeCreators and a Sorter to sort the data and schema files, to force the schema features arrive at the FeatureWriter before the data features. This is what your log is complaining about.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.