Metadata geoprocessing tools fail to run using arcpy in the Python window.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM048885
已提交
September 28, 2009
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
10.0
修正版本
10.0
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Run the metadata geoprocessing tools interactively from their dialog boxes instead. The geoprocessing tools that are not models will also work when run in the Python window using arcgisscripting:import arcgisscriptinggp = arcgisscripting.create()gp.XSLTransform("c:/data/dataset.shp","c:/program files/arcgis/desktop9.4/metadata/stylesheets/gptools/exact copy of.xslt","c:/data/dataset_metadatacopy.xml","#")...instead of using arcpy:import arcpyarcpy.XSLTransform_conversion("c:/data/dataset.shp","c:/program files/arcgis/desktop9.4/metadata/stylesheets/gptools/exact copy of.xslt","c:/data/dataset_metadatacopy.xml","#")