Polling the Community on how you typically find subtyped feature classes in a geodatabase. The use case is GIS Analyst (new hire) is handed a geodatabase with numerous features without any documentation.
My go-to is the List Subtypes function in arcpy, something like:
def subtype_field(dataset): return next(iter(arcpy.da.ListSubtypes(dataset).values()))["SubtypeField"]
If the returned value is the empty string then you know there's no subtypes.
In addition to the ListSubtypes function in arcpy, there is a new GP tool called Generate Schema Report that lists just about everything in your GDB. You can learn more about it here!
I’d likely use Oracle SQL to query the enterprise geodatabase system tables.
Thank you for mentioning this! I've been generating these reports weekly for a year now but never thought to actually use them when I needed them 😉
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.