public TinDataset GetTinDataset()
Public Function GetTinDataset() As TinDataset
Return Value
The TIN dataset associated with the layer.
public TinDataset GetTinDataset()
Public Function GetTinDataset() As TinDataset
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
using
statement or a finally
block.//Must be on the QueuedTask.Run() Envelope extent; SpatialReference sr; using (var tin = tinLayer.GetTinDataset()) { using (var tinDef = tin.GetDefinition()) { extent = tinDef.GetExtent(); sr = tinDef.GetSpatialReference(); } } using (var terrain = terrainLayer.GetTerrain()) { using (var terrainDef = terrain.GetDefinition()) { extent = terrainDef.GetExtent(); sr = terrainDef.GetSpatialReference(); } } using (var lasDataset = lasDatasetLayer.GetLasDataset()) { using (var lasDatasetDef = lasDataset.GetDefinition()) { extent = lasDatasetDef.GetExtent(); sr = lasDatasetDef.GetSpatialReference(); } }
Target Platforms: Windows 11, Windows 10