laptop and a wrench

Error

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

ArcGIS API for Python
Número de ID del error BUG-000169804
EnviadoAugust 8, 2024
Última modificaciónAugust 22, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.3.0
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregidaQ4 2024 (version 2.4.0)
EstadoFixed

Solución alternativa

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)

Pasos para reproducir

ID del error: BUG-000169804

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga