Skip to main content
Solved

How to select the latest feature class from ESRI file geodatabase


wil
Contributor
Forum|alt.badge.img+2
  • Contributor

I have a file geodatabase where backups are stored with a date in the name that gives the backupdate, BU_20230724, BU_20230731 etc. How can I select that only the latest will be read for further analysis? Normally, a feature class is selected under Constraints > Tables and you can select the one you need but, the latest Backup will not stay the same during the year. In a automated proces I would like to select the one with the latest date without changing it manually.

Best answer by david_r

You can use the Schema reader to extract all the feature class names, use a Sorter and a Sampler (first 1) to get the latest and then send the name to a FeatureReader.

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • Best Answer
  • August 29, 2023

You can use the Schema reader to extract all the feature class names, use a Sorter and a Sampler (first 1) to get the latest and then send the name to a FeatureReader.


wil
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • August 29, 2023

Many thanks, that's it.


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