laptop and a wrench

漏洞

Lines and polygons are not recognized by ArcPy layer.isRasterizingLayer when referencing the pathname of the map document (MXD).

上次发布: October 30, 2015 ArcGIS for Desktop
漏洞 ID 编号 BUG-000090879
已提交September 21, 2015
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.3.1
操作系统Windows OS
操作系统版本7
修正版本10.4.0
状态Fixed

解决办法

ArcPy layer.isRasterizingLayer only recognizes lines and polygons when it is ran from the Python Window referencing the 'CURRENT' MXD, whereas points are recognized when referencing the path of the MXD or using the 'CURRENT' MXD. Can only use 'CURRENT' in the Python Window. import arcpy mxd = arcpy.mapping.MapDocument('CURRENT') layers = arcpy.mapping.ListLayers(mxd) for layer in layers: #list(reversed(layers)): if layer.isRasterizingLayer: print "isRasterizing:"+layer.name

重现步骤

漏洞 ID: BUG-000090879

软件:

  • ArcGIS for Desktop

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项