Skip to main content
Question

using directory and file pathnames reader to view/query data in some files


fbastian73
Contributor
Forum|alt.badge.img+12

Hello experts,

My question is simple.

when using the Directory and File Pathnames to access a directory, can I then read files from that directory?
I would like to be able to view and query the data in those 1042 filepaths passing the testfilter.

see my current workbench:
 

any help would be much appreciated,

thank you.

fb

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Not sure why this would not work, this is how I do it all the time. Feed the path_windows attribute into the featurereders dataset field and you are good to go.

This is a dynamic workflow, the FeatureReader will not know the schema before you run it, so your features will leave the generic outputport and you’ll need to expose the attributes using an AttributeExposer.


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • June 27, 2024

Agreeing with @nielsgerrits, I also use this method frequently. Adding that if the schema is the same for the files, sometimes I will add the featuretype as an output port. Otherwise if using the generic port, like @nielsgerrits said you will need to expose the attributes. Either with an AttributeExposer or by setting it up in the Attribute and Geometry Handling <Generic> Port section of the FeatureReader’s parameters.


fbastian73
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • June 28, 2024

Thank you @nielsgerrits. I was missing the attributeexposer. That worked for me.

Cheers,

fb


Reply


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