laptop and a wrench

漏洞

Documentation located at http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000036000000.htm displays incorrect usage in DeleteFeatures example 2 (stand-alone script) for ArcPy GetCount_management tool in conditional if statement. Please correct documentation.

上次发布: August 25, 2014 ArcGIS for Desktop
漏洞 ID 编号 NIM066477
已提交March 24, 2011
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.0
操作系统Windows OS
操作系统版本XP
修正版本10.1
状态Fixed

解决办法

Use the int() function and getOutput method to cast the ArcPy.GetCount_management result object to unicode text and then to an integer.Example:result = arcpy.GetCount_management(tempLayer)if int(result.GetOutput(0)) > 0:

重现步骤

漏洞 ID: NIM066477

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项