RemoveHistory(myWorkspace, gp_history_xslt, output_dir) #directory already exists, the files will be created there. #Creates directory to store the xml tables of converted metadata. Gp_history_xslt = r"C:\Program Files (x86)\ArcGIS\Desktop".format(feature) MyWorkspace = r"C:\XML_out\dbinstance_testgdb.sde" ''' Update the following five variables before running the script.''' Run the included Python script after updating the variables: Perform the procedure in the 32-bit version of Python. The following script automates this process for all feature classes in a geodatabase, including feature classes stored in a feature dataset. The instructions provided below describe how to achieve this goal using a Python script. Remove geoprocessing history from feature classes The following script describes how to achieve this goal using a Python script and workflow of how to remove geoprocessing history from an enterprise geodatabase workspace. GIS administrators and managers sometimes need to delete the geoprocessing history from a feature class or workspace metadata. The metadata includes the tool name, its location, and the parameters used when geoprocessing logging is enabled. Geoprocessing tools add metadata about its execution in a geodatabase. How To: Delete geoprocessing history from a geodatabase in ArcMap using Python Summary
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |