Select to view content in your preferred language

Find Subtyped feature classes

284
3
06-10-2024 08:12 AM
Labels (1)
AyanPalit
Esri Regular Contributor

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. 

Ayan Palit | Principal Consultant Esri
0 Kudos
3 Replies
DavidSolari
Occasional Contributor III

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.

Robert_LeClair
Esri Notable Contributor

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!

Bud
by
Honored Contributor

I’d likely use Oracle SQL to query the enterprise geodatabase system tables.

0 Kudos