Skip to main content
Solved

List all Shapefiles in a Folder?

  • March 27, 2023
  • 3 replies
  • 119 views

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}".

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

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

david_r
Celebrity
  • 8392 replies
  • 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
  • 48 replies
  • March 28, 2023

Thank you both for pointing me in the right direction.