Solved

List all Shapefiles in a Folder?

  • 28 March 2023
  • 3 replies
  • 13 views

Userlevel 1
Badge +15

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.

icon

Best answer by david_r 28 March 2023, 08:42

View original

3 replies

Userlevel 2
Badge +12

You need this reader:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/path/path.htm

Userlevel 4

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

Userlevel 1
Badge +15

Thank you both for pointing me in the right direction.

 

Reply