Question

How to select files for reader using a filter?


I have a shp-file containing Picture frames with attributes showing the name of the frame. I want to use this shp-file to select the correct raster images for the TIFF-reader. There are so many that it would take me some time to select the right ones...

 

Fme_basename, the name of the TIFF-Picture in my folder

 

photoID, corresponding name of the Picture in a subset of Pictures that I want to select for the reader


2 replies

Userlevel 2
Badge +16

You can use this workflow:

Use a reader for the Shape file.

Follow this with a FeatureReader transformer (transformer that act as a reader, but with an initiator) and use the name from the Shape file as parameter for the Tiff file in the FeatureReader.

That would read only those Tiff files that are mentioned in the Shape file.

Hope this helps.

Userlevel 1
Badge +21

You can use the shapefile in conjunction with a featurereader to read the correct tif files. You just need to configure the Dataset parameter to use the name held in the fotonnamn attribute. Are all the photos in the same folder? It's still possible if they are but building the dataset string is slightly more complicated

Reply