Skip to main content
Question

Pass a list of files to the JPEG reader?

  • November 11, 2013
  • 3 replies
  • 14 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?

 

 

 
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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+21
  • 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.