Skip to main content
Question

Pass a list of files to the JPEG reader?

  • November 11, 2013
  • 3 replies
  • 10 views

Forum|alt.badge.img

I would like to to use the DirectoryAndFilePath Reader to assemble a list of file paths, and then feed tha to a JPEG reader as the list it should read.

 

 

I have also looked at the FeatureReader, to see if it could be used under program control.

 

 

But I am drawing a blank. Any hints?

 

 

 

3 replies

david_r
Celebrity
  • November 11, 2013
Hi,

 

 

you could either split it into 2 workspaces and use the WorkspaceRunner to pass the list of JPEG files from the DirectoryAndFilePath reader, or you could use a Scripten Python parameter with something like this:

 

 

import glob files = glob.glob(r'C:\\my_jpegs_are_here\\*.jpg') name_list = '"' + " ".join(['"' + x + '"' for x in files]) + '"' return name_list

 

 

Link the scripted parameter to the JPEG readers "Source JPEG File(s):" parameter.

 

 

David

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • November 11, 2013
Hi,

 

 

For raster features you can better use the RasterReader. Works like a charm.

 

 

Itay

Forum|alt.badge.img
  • Author
  • November 11, 2013
RasterReader it is, thank you.

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