Skip to main content
Question

FeatureReader is reading all shapefiles together – how can I process them one by one?

  • July 10, 2026
  • 1 reply
  • 13 views

chitra
Contributor
Forum|alt.badge.img+1

Hi,

I'm passing multiple shapefile paths from Directory and File Pathnames to a FeatureReader. The FeatureReader reads all shapefiles together, but I need it to process one shapefile at a time before moving to the next shapefile.

How can I make FeatureReader read and process each shapefile sequentially instead of combining all inputs?

Thanks.

 

1 reply

s.jager
Influencer
Forum|alt.badge.img+26
  • Influencer
  • July 10, 2026

My first question would be “Why?”, but if you need to process the shapefiles separately, you can do that several ways:

  • Set the FeatureReader’s Output Ports to One per Feature Type.
  • Expose the fme_basename, which should hold the shapefile name, then filter or group accordingly.

Without knowing more it’s difficult to recommend other ways...