GetDataSourceCount Method
Gets the number of datasources used in this terrain. Also see
GetDataSources. This method must be called on the MCT. Use QueuedTask.Run.
public int GetDataSourceCount()
Public Function GetDataSourceCount() As Integer
Return Value
The number of datasources used in this terrain.
Get datasources from a Terrain
var dsCount = terrain.GetDataSourceCount();
IReadOnlyList<ArcGIS.Core.Data.Analyst3D.TerrainDataSource> dataSources = terrain.GetDataSources();
foreach (var ds in dataSources)
{
var dsName = ds.DataSourceName;
var surfaceType = ds.SurfaceType;
var maxResolution = ds.MaximumResolution;
var minResolution = ds.MinimumResolution;
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.2 or higher.