Friday, 21 August 2015

Reordering fields (permanently) in file geodatabase using ArcGIS Desktop?


Using ArcGIS 10.0, is it possible to reorder the fields in a file geodatabase, and have the order persisted to the database?


We considered exporting to XML, and writing a parser to change the field order, then re-creating a new database from the XML. This seems like a laborious process.


Another idea is to import the existing field definitionss into Excel, re-order them, export to CSV, then write a Python script to create these fields in a new Geodatabase. Does a script like this exist, before we write it from scratch?


Unfortunately the ArcGIS Diagrammer doesn't seem to support field re-ordering.



Are there any scripts or hacks we could use to simplify this process?



Answer



As mentioned in the comments you can reorder fields with ArcGIS Diagrammer. I posted a more general step by step in this answer: How to update the length property of a feature class field?


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...