Skip to main content

I have a process that downloads groups of shapefiles of the same schema to a folder from a google bucket. I am trying to read in those shapefiles with a feature reader so that I can add an attribute containing the shapefiles name. Then I want to write all those shapefiles to a singe feature class in a geodatabase. How would I set up my featurereader so I can create and write that attribute in all those shapefiles before writing to the feature class?

 

Hi ​@kennethrichards ,

You can read source file name (without extension) as an FME attribute called "fme_basename" and expose it, with these settings.

  • Select "fme_basename" in the Additional Attributes to Expose parameter, Shapefile Parameters.
  • Set "fme_basename" in the Attributes to Expose parameter, FeatureReader, if you read features with Single Output Port - <Generic>.

 


Reply