<?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 3D Analyst - Interpolate Line / Profile Graph in ArcObjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/3d-analyst-interpolate-line-profile-graph-in/m-p/673186#M18029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I posted a &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/14762-Interpolate-Line-Profile-Graph-automation"&gt;thread&lt;/A&gt;&lt;SPAN&gt; originally in 3D Analyst forums, but I think it may better be served here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking at ways to programmatically run a couple of tools in 3D Analyst, 'Interpolate Line', and then 'Profile Graph' to show a graphical representation of the line at different elevation points. The resulting graph that is made when I run these two tools is great, but I need to do this behind the scenes using ArcObjects and be able to capture this graph output and save to the hard disk. However, I have found next to nothing on how to do something similar using ArcObjects (we are using version 10). Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 13:13:12 GMT</pubDate>
    <dc:creator>BrentStevener</dc:creator>
    <dc:date>2010-10-11T13:13:12Z</dc:date>
    <item>
      <title>3D Analyst - Interpolate Line / Profile Graph in ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/3d-analyst-interpolate-line-profile-graph-in/m-p/673186#M18029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I posted a &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/14762-Interpolate-Line-Profile-Graph-automation"&gt;thread&lt;/A&gt;&lt;SPAN&gt; originally in 3D Analyst forums, but I think it may better be served here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking at ways to programmatically run a couple of tools in 3D Analyst, 'Interpolate Line', and then 'Profile Graph' to show a graphical representation of the line at different elevation points. The resulting graph that is made when I run these two tools is great, but I need to do this behind the scenes using ArcObjects and be able to capture this graph output and save to the hard disk. However, I have found next to nothing on how to do something similar using ArcObjects (we are using version 10). Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 13:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/3d-analyst-interpolate-line-profile-graph-in/m-p/673186#M18029</guid>
      <dc:creator>BrentStevener</dc:creator>
      <dc:date>2010-10-11T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: 3D Analyst - Interpolate Line / Profile Graph in ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/3d-analyst-interpolate-line-profile-graph-in/m-p/673187#M18030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ever figure this out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I have a series of lines in a shapefile indicating where survey work was done, and I would like to get profiles of those lines from a DEM I have.&amp;nbsp; There has to be a faster and more accurate way of getting the profiles than by redrawing each line by hand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 16:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/3d-analyst-interpolate-line-profile-graph-in/m-p/673187#M18030</guid>
      <dc:creator>RichardSullivan</dc:creator>
      <dc:date>2010-11-04T16:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: 3D Analyst - Interpolate Line / Profile Graph in ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/3d-analyst-interpolate-line-profile-graph-in/m-p/673188#M18031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm facing the same issue.&amp;nbsp; I've ended up writing my own code to extract the profile graphs from a raster.&amp;nbsp;&amp;nbsp; I have a version working for Arc 9.3 and I am in the process of migrating this code over to Arc10.&amp;nbsp; However, I'm having an issue.&amp;nbsp; When trying to get the raster from a IRasterBand data type to the IRasterSurface I get a null return.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public void GetThicknessData(IRasterLayer rAlamoSurface, IFeatureLayer fThicknessProfile)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IFeature fProfile = fThicknessProfile.FeatureClass.GetFeature(11);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPointCollection pPointCollection = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPolyline pPolyLine = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeometry pGeom = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Double dCellSize = 30;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRasterBandCollection pRasterBands = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRasterBands = rAlamoSurface.Raster as IRasterBandCollection;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRasterBand pRasterBand = pRasterBands.Item(0);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRasterSurface pRasterSurface = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //I get the error here....trying to cast an IRasterBand to an IRasterSurface
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //pRasterSurface.RasterBand = pRasterBand as IRasterSurface;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //I've found other VB.net references that use:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //pRasterSurface.RasterBand = pRasterBand;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //In every case I try the pRasterSurface is null.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRasterSurface = rAlamoSurface.Raster as IRasterSurface;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/3d-analyst-interpolate-line-profile-graph-in/m-p/673188#M18031</guid>
      <dc:creator>JosephSheffield</dc:creator>
      <dc:date>2021-12-12T04:24:39Z</dc:date>
    </item>
  </channel>
</rss>

