Skip to main content
Solved

List all Shapefiles in a Folder?


vxn43
Supporter
Forum|alt.badge.img+18

I have hundreds of shapefiles in different folders and subfolders. I would like to create an excel file that shows three columns:

Col1 = Name of .shp file

Col2 = Geometry of .shp file

Col3 = Directory/Path of .shp file

 

For Transformers, I think I need to start with Creator - FeatureReader, then I get stuck.

Best answer by david_r

Since you need the geometry type, I'd use a second FeatureReader after the Path reader (set to search for *.shp recursively) , configured like this:image You'll find the geometry type in the attribute "fme_geometry{0}".

View original
Did this help you find an answer to your question?

3 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • March 28, 2023

david_r
Celebrity
  • Best Answer
  • March 28, 2023

Since you need the geometry type, I'd use a second FeatureReader after the Path reader (set to search for *.shp recursively) , configured like this:image You'll find the geometry type in the attribute "fme_geometry{0}".


vxn43
Supporter
Forum|alt.badge.img+18
  • Author
  • Supporter
  • March 28, 2023

Thank you both for pointing me in the right direction.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings