laptop and a wrench

Bogue

The SceneLayerManager class has an incorrect source type attribute in ArcGIS API for Python.

ArcGIS API for Python
Numéro d’ID de bogue BUG-000169804
EnvoiAugust 8, 2024
Dernière modificationAugust 22, 2024
S’applique àArcGIS API for Python
Version trouvée2.3.0
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correctionQ4 2024 (version 2.4.0)
StatutFixed

Solution de contournement

In the case where the source type of the SceneLayer is known to be a feature service, set the private property of the SceneLayerManager class to the following:

from arcgis.gis import GIS

from arcgis.mapping import SceneLayer

gis = GIS('https://arcgis.com', '<username>', '<password>')

scene_layer = SceneLayer('<URL to scene service>', gis=gis)

scene_layer_manager = scene_layer.manager

scene_layer_manager._source_type = 'Feature Service'

result = scene_layer_manager.rebuild_cache(layers=0)

print(result)

Étapes pour reproduire

ID de bogue: BUG-000169804

Logiciel:

  • ArcGIS API for Python

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