laptop and a wrench

Bogue

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

Dernière publication: October 30, 2015 ArcGIS for Desktop
Numéro d’ID de bogue BUG-000090879
EnvoiSeptember 21, 2015
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.3.1
Système d’exploitationWindows OS
Version du système d’exploitation7
Version de correction10.4.0
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000090879

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement