laptop and a wrench

Bug

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

ArcGIS API for Python
Bug ID Number BUG-000169804
SubmittedAugust 8, 2024
Last ModifiedAugust 22, 2024
Applies toArcGIS API for Python
Version found2.3.0
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version FixedQ4 2024 (version 2.4.0)
StatusFixed

Workaround

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)

Steps to Reproduce

Bug ID: BUG-000169804

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options