Skip to main content

There are many times when I would like to be able to have one featureReader with the format set by an attribute instead of having to use a testfilter to fanout my data and a separate featureReader for every format.

(The generic format does not work for my purposes because some of my data formats share extensions with other formats and the guess from extension is hit or miss)

Rasters perchance? I think we at one point had a RasterReader and had worked to have the format able to be set, but I think we have to get back to this for the FeatureReader to scenarios like yours...


Yes, this is for rasters. There was C93528 and PR45107 from C85681 for parameters from attributes for the RasterReader, but as I recall that was only for the Dataset File parameter not the Raster Reader Type parameter, and development was halted as the transformer was deprecated and merged into the FeatureReader.


Okay looking at the latest FeatureReader, there does appear to be a workaround.

 

Set the Format to Generic (Any Format)

 

In the Parameters set the Input Format to an attribute containing the fme_format_short_name.

 

 

I would still prefer to set the format directly so the schema feature has the actual format information instead of 'GENERIC'.

Would like to be able to set the format from a parameter. Should be similar to the idea with allowing attributes but still a little different variation ;-)


The following idea has been merged into this idea:

All the votes have been transferred into this idea.

The following idea has been merged into this idea:

All the votes have been transferred into this idea.