<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting Tin as null from Terrain in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/getting-tin-as-null-from-terrain/m-p/389541#M10349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've never worked with terrains but from the sound of it you really need a Surface to work with.&amp;nbsp; Looking at the developer help for ITerrain I see there is a method called CreateDynamicSurface.&amp;nbsp; IDynamicSurface has a method called GetTin.&amp;nbsp; From ITin, you can QI to ISurface, which has methods to get elevation, slope and aspect.&amp;nbsp; Have you tried any of this?&amp;nbsp; If not, give it a shot.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Neil for reply. I have treid with GetTin with the help of below link,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_perform_surface_analysis_on_a_terrain_dataset/0001000002pt000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_perform_surface_analysis_on_a_terrain_dataset/0001000002pt000000/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But its giving Null(ITinSurfaceElement) if i get the Tin with less resolution. My requirement is to provide a webservice which should query set of points on Terrain and respond with terrain properties for given set of points . If i provide high resolution Tin it takes more time to GetTin from DynamicSurface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How ArcMap is showing Terrain data fast and IIdentify works well, We dont have map to query. IIdentify is also not giving IArray on query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 08:52:59 GMT</pubDate>
    <dc:creator>LalitArora1</dc:creator>
    <dc:date>2011-12-14T08:52:59Z</dc:date>
    <item>
      <title>Getting Tin as null from Terrain</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/getting-tin-as-null-from-terrain/m-p/389539#M10347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a Terrain dataset in my SQL server. I have to query the dataset for Elevation, Slope, Aspect values for a given X&amp;amp;Y "without map interaction". I found an interface ITinSurfaceElement which returns properties of Tin Layer. This requires Tin/TinSurface object from terrain which I am not getting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried getting GetCurrentSurface from TerrainLayer which also gives null. But when I add the same layer in Map and get the currentsurface, i can get the surface and Tin object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing some step in the below code for getting 'Tin' from 'Terrain'. Please suggest if there is another way to get this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;workspace = GetWorkspace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureWS = workspace as IFeatureWorkspace;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dsName = "HEIGHT.LIDAR.NOTTS";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tinName = "HEIGHT.LIDAR.NOTTS_Terrain";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureDS = featureWS.OpenFeatureDataset(dsName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureDSExtContainer = featureDS as IFeatureDatasetExtensionContainer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dsContainer = (IDatasetContainer3)featureDSExtContainer.FindExtension(esriDatasetType.esriDTTerrain);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;terrainDS = dsContainer.get_DatasetByName(esriDatasetType.esriDTTerrain, tinName) as ITerrain;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITerrainLayer terrainLayer = new TerrainLayerClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;terrainLayer.Terrain = terrainDS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;renderer = terrainLayer.GetRenderer(1); //Elevation Renderer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITin tin = renderer.Tin;//tin is null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note:I have tried with IIdentify interface as well with the TerrainLayer. It din't return any results in IArray.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 19:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/getting-tin-as-null-from-terrain/m-p/389539#M10347</guid>
      <dc:creator>LalitArora1</dc:creator>
      <dc:date>2011-12-13T19:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Tin as null from Terrain</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/getting-tin-as-null-from-terrain/m-p/389540#M10348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've never worked with terrains but from the sound of it you really need a Surface to work with.&amp;nbsp; Looking at the developer help for ITerrain I see there is a method called CreateDynamicSurface.&amp;nbsp; IDynamicSurface has a method called GetTin.&amp;nbsp; From ITin, you can QI to ISurface, which has methods to get elevation, slope and aspect.&amp;nbsp; Have you tried any of this?&amp;nbsp; If not, give it a shot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 20:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/getting-tin-as-null-from-terrain/m-p/389540#M10348</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-12-13T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Tin as null from Terrain</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/getting-tin-as-null-from-terrain/m-p/389541#M10349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've never worked with terrains but from the sound of it you really need a Surface to work with.&amp;nbsp; Looking at the developer help for ITerrain I see there is a method called CreateDynamicSurface.&amp;nbsp; IDynamicSurface has a method called GetTin.&amp;nbsp; From ITin, you can QI to ISurface, which has methods to get elevation, slope and aspect.&amp;nbsp; Have you tried any of this?&amp;nbsp; If not, give it a shot.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Neil for reply. I have treid with GetTin with the help of below link,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_perform_surface_analysis_on_a_terrain_dataset/0001000002pt000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_perform_surface_analysis_on_a_terrain_dataset/0001000002pt000000/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But its giving Null(ITinSurfaceElement) if i get the Tin with less resolution. My requirement is to provide a webservice which should query set of points on Terrain and respond with terrain properties for given set of points . If i provide high resolution Tin it takes more time to GetTin from DynamicSurface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How ArcMap is showing Terrain data fast and IIdentify works well, We dont have map to query. IIdentify is also not giving IArray on query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 08:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/getting-tin-as-null-from-terrain/m-p/389541#M10349</guid>
      <dc:creator>LalitArora1</dc:creator>
      <dc:date>2011-12-14T08:52:59Z</dc:date>
    </item>
  </channel>
</rss>

