サマリー
Controls whether geoprocessing tool input and output datasets' metadata is updated to include the tool name, parameters, when the tool was run, and other information.
説明
In a script, metadata logging is activated by default. To disable metadata logging, use arcpy.SetLogMetadata(False).
To control logging of geoprocessing history to an XML file, use the SetLogHistory function.
構文
SetLogMetadata (log_metadata)
パラメーター | 説明 | データ タイプ |
log_metadata | Specifies whether dataset metadata is updated.
| Boolean |
コードのサンプル
Disable the update of dataset metadata, if enabled.
import arcpy
if arcpy.GetLogMetadata():
arcpy.SetLogMetadata(False)