Question

Convert SHP to GDB and use certain folder names as the feature class names in which SHPs will be converted into.


Badge +1

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


2 replies

Badge +2

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

Badge +1

Thank you, I shall give this a go!

Reply