Skip to main content

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?

 

 

 
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(o'"' + x + '"' for x in files]) + '"' return name_list

 

 

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

 

 

David
Hi,

 

 

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

 

 

Itay
RasterReader it is, thank you.

Reply