I have a strict data model which needs to be enforced for a project. For all featureclasses which exist, I need to check if the fields which are present conform to the data model. I want to do this in python. An example:
`Field1 must called Field_01 and the format is Text with length 255` `Field2 must called Field_02 and must of Format Int` `Field3 must called Field_03 and must of Format Date`
If my Featureclase to be tested has 20 fields, I need to loop through all fields describing their formats and compare to the data model.
If they are wrongly named or formated the correct field should be added and the the attributes copied. The old field should then be deleted.
Everyone has these tasks but I have never seen a script to really tackle the problem. Is it worth the trouble writing it?