Select to view content in your preferred language

Script to compare feature classes and return differences in structure

234
2
06-07-2024 04:33 AM
SanchezNuñez
Occasional Contributor

Good morning,

Is there any script that compares two feature classes and returns the differences in structure, such as missing fields, fields with different type, etc.

Same type of script but comparing FGDB.

Thanks

 

 

0 Kudos
2 Replies
David_McRitchie
Esri Contributor

Hey Sanchez,

 

Would the Feature Compare tool work? Probably would be quickest to refer to this in your script.

 

Hope that helps,

David

Esri UK -Technical Support Analyst
0 Kudos
JoseSanchez
Regular Contributor

Hi @David_McRitchie 

This tool only says that "Table: Tables have different number of fields (Base: 43, Test: 120).
Field: Field OBJECTID aliases are different (Base: OBJECTID, Test: Object ID).
Field: Field XCOORD default values are different.
Field: Field YCOORD default values are different.
Field: Field ZCOORD default values are different.

and I am looking for a tool that lists the fields missing, in this case 120-43 = 97 fields missing.

Thanks

0 Kudos