public SpatialReference GetSpatialReference()
Public Function GetSpatialReference() As SpatialReference
Return Value
The ArcGIS.Core.Geometry.SpatialReference for the TinDataset.
public SpatialReference GetSpatialReference()
Public Function GetSpatialReference() As SpatialReference
Exception | Description |
---|---|
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
//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