I have 200+ shapefiles I would like to read in and merge into a single fgdb feature class. Some of the shapefiles have slightly varying schemas. Is there an efficient way to read them all in at once and validate if the schema is the correct format I would like? Rather than going through them one-by-one?
Page 1 / 1
You can use SchemaScanner to scan attributes in each file. This will return a list of attributes which can be exploded using ListExploder. After that, each attribute will become one record, but it will contain original feature name. That can be later used to compare number of provided attributes with number of allowed attributes. That number must match.
Important: If there are attributes that don't have any value, SchemaScanner won't return their name in the list.