Skip to main content

I have numerous shapefiles in numerous folders. While I can parse through all of these and convert directly into a GDB I will have 203 separate classes. I would like to use the parent folder name as my feature class name. Each folder has a varying number of SHPs in it but they all belong to their parent folder. Inside the parent folders, SHPs Parent folders each containing numerous SHPs

Hi @sjolster31​ ,

You should be able to get this done by exposing the fme_dataset format attribute and passing that into the FilenamePartExtractor. This will create a new attribute (_dirname) which you can then use to Fanout to create feature classes.

image


Thank you, I shall give this a go!


Reply