Hi All, I am stuck trying to figure this out. I am having trouble seeing feature classes inside FeatureDatasets using the FeatureReader. My Feature Types to Read is fme_feature_type_name and I am exposing fme_feature_type and geodb_metadata_string. All seems to work for feature classes but FCs in FeatureDatasets are skipped in Generic. They come across in the Initiator though. See screen cap below. I must be missing something simple. Any thoughts?
@crutledge It looks like you are using the Esri Geodatabase (File Geodb Open API) to read your File Geodb. Can you confirm that?
The FeatureReader with the Esri Geodatabase (File Geodb Open API) shouldn't have any trouble reading Feature Classes within a Feature Dataset. The fme_feature_type should include the Feature Dataset, i.e. Water_Distribution/wLateralLine
Are you using any other Constraints in the FeatureReader such as a SpatialFilter or Feature Types to Read?
@crutledge It looks like you are using the Esri Geodatabase (File Geodb Open API) to read your File Geodb. Can you confirm that?
The FeatureReader with the Esri Geodatabase (File Geodb Open API) shouldn't have any trouble reading Feature Classes within a Feature Dataset. The fme_feature_type should include the Feature Dataset, i.e. Water_Distribution/wLateralLine
Are you using any other Constraints in the FeatureReader such as a SpatialFilter or Feature Types to Read?
Screencaps did not come through with the reply. Here are the three in order referenced above.
@crutledge The "Generic (Any Format)" format seems to work OK, returning both the Feature Class and the Feature Dataset for either "Esri Geodatabase (File Geodb Open API)" format or "Esri Geodatabase (File Geodb)" format (I'm using FME 2021.2) .
Schema (Any Format) will only return schema features - redundant in the FeatureReader since it has a <schema> port
@crutledge The "Generic (Any Format)" format seems to work OK, returning both the Feature Class and the Feature Dataset for either "Esri Geodatabase (File Geodb Open API)" format or "Esri Geodatabase (File Geodb)" format (I'm using FME 2021.2) .
Schema (Any Format) will only return schema features - redundant in the FeatureReader since it has a <schema> port
@markatsafe Thanks Mark. Follow up question: In terms of workflow, do I need the FeatureReader or could I go from the Schema (Any Format) reader to the AttributeExposer. Sorry if that's a silly question but I read 'redundant' and wondering if I can make the workflow more efficient. As always thanks for sharing your knowledge.
c.
@markatsafe Thanks Mark. Follow up question: In terms of workflow, do I need the FeatureReader or could I go from the Schema (Any Format) reader to the AttributeExposer. Sorry if that's a silly question but I read 'redundant' and wondering if I can make the workflow more efficient. As always thanks for sharing your knowledge.
c.
@crutledge I'm not sure I understand your question. Perhaps you can expand a little on what you're trying to accomplish overall. But if you just want the schema then either the 'Schema (Any Format)' reader or the FeatureReader <schema> port should return the attribute{} list of the schema and you should need the AttributeExposer.
@markatsafe Thanks Mark. Follow up question: In terms of workflow, do I need the FeatureReader or could I go from the Schema (Any Format) reader to the AttributeExposer. Sorry if that's a silly question but I read 'redundant' and wondering if I can make the workflow more efficient. As always thanks for sharing your knowledge.
c.
Thanks for your answer Mark. That makes sense now. That got me working. I am setting up a metadata reader from geodb to write that out to excel and was having trouble with the initial read. This works well now. Thanks again!