SceneLayerDataSourceType Enumeration
An enumeration to represent the scene layer data source type.
Get the Data Source type
//Must be called on the MCT
var dataSourceType = featSceneLayer?.GetDataSourceType() ??
SceneLayerDataSourceType.Unknown;
if (dataSourceType == SceneLayerDataSourceType.SLPK)
{
//Uses SLPK - only cached attributes
}
else if (dataSourceType == SceneLayerDataSourceType.Service)
{
//Hosted service - can have live attributes - check HasAssociatedFeatureService
}
Get Data Source type for PointCloudSceneLayer
//var pcsl = ...;
//At 2.x - ISceneLayerInfo slInfo = pcsl as ISceneLayerInfo;
// SceneLayerDataSourceType dataSourceType = slInfo.GetDataSourceType();
SceneLayerDataSourceType dataSourceType = pcsl.GetDataSourceType();
if (dataSourceType == SceneLayerDataSourceType.Service)
{
//TODO...
}
else if (dataSourceType == SceneLayerDataSourceType.SLPK)
{
}
System.Object
System.ValueType
System.Enum
ArcGIS.Desktop.Mapping.SceneLayerDataSourceType
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.