laptop and a wrench

Bug

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

Last Published: October 30, 2015 ArcGIS for Desktop
Bug ID Number BUG-000090879
SubmittedSeptember 21, 2015
Last ModifiedNovember 24, 2020
SeverityMedium
Applies toArcGIS for Desktop
Version found10.3.1
Operating SystemWindows
Operating System Version7
Version Fixed10.4.0
StatusFixed

Workaround

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

Steps to Reproduce

Bug ID: BUG-000090879

Software:

  • ArcGIS for Desktop

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic