Skip to main content
Solved

FeatureReader Parameters


bjudes
Enthusiast
Forum|alt.badge.img+10

I have multiple jpegs in multiple folders. I first read in using the Directory and File pathnames reader. I didn't want all jpegs to be read so I created a tester to negate some of these. Next I used a string searcher to isolate only the jpgs and not world files or .aux. Next is where my issue arises. I want to now read in the jpgs that I have isolated using a FeatureReader. But within the feature reader parameters for dataset I don't know how to link back to the jpeg files. Any ideas would be greatly appreciated.

Thanks

Best answer by david_r

Here's how I'd set up the FeatureReader to point to the "path_windows" attribute supplied by the Path names reader:

Notice that I'd also choose to use a single output port, this simplifies your workspace slightly as every jpeg is then output from the <Generic> output port:

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

5 replies

david_r
Celebrity
  • October 10, 2017

What value are you passing as "Dataset" in the FeatureReader? Perhaps send the output from the StringSearcher to a Logger so you can see what's going on. From the Path names reader you probably want to use the "path_windows" attribute.

Rather than using the StringSearcher, you can tell the Path names reader to only return .jpg files:


bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • October 10, 2017
david_r wrote:

What value are you passing as "Dataset" in the FeatureReader? Perhaps send the output from the StringSearcher to a Logger so you can see what's going on. From the Path names reader you probably want to use the "path_windows" attribute.

Rather than using the StringSearcher, you can tell the Path names reader to only return .jpg files:

That's my problem, I'm not sure what to add as "Dataset" in the FeatureReader. I want to link this to the jpegs that have been isolated in the multiple folders that have been read through the intital Directory and File Pathnames reader.

bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • October 10, 2017
david_r wrote:

What value are you passing as "Dataset" in the FeatureReader? Perhaps send the output from the StringSearcher to a Logger so you can see what's going on. From the Path names reader you probably want to use the "path_windows" attribute.

Rather than using the StringSearcher, you can tell the Path names reader to only return .jpg files:

translationlog.txt

 

 


david_r
Celebrity
  • Best Answer
  • October 10, 2017

Here's how I'd set up the FeatureReader to point to the "path_windows" attribute supplied by the Path names reader:

Notice that I'd also choose to use a single output port, this simplifies your workspace slightly as every jpeg is then output from the <Generic> output port:


bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • October 10, 2017
david_r wrote:

What value are you passing as "Dataset" in the FeatureReader? Perhaps send the output from the StringSearcher to a Logger so you can see what's going on. From the Path names reader you probably want to use the "path_windows" attribute.

Rather than using the StringSearcher, you can tell the Path names reader to only return .jpg files:

That worked perfect.You're a genius!! Thanks so much for the swift help.

 

 


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