Skip to main content
Question

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


Forum|alt.badge.img+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

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • June 7, 2022

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


Forum|alt.badge.img+1
  • Author
  • June 7, 2022

Thank you, I shall give this a go!


Reply


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