<?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: [ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation lay in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71198#M1911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That looks correct to me.&amp;nbsp; One thing I would try is to load this data as a layer into ArcMap.&amp;nbsp; Right click the layer and save it out as a layer file then load the layer file into your map control using IMapControl.AddLayerFromFile and see what happens.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 13:19:32 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2012-03-13T13:19:32Z</dc:date>
    <item>
      <title>[ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71192#M1905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Despite some significant time spent searching documentation and reading the ArcGIS online help and forums I still can't find a solution for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This thread is a child of : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/52661-DotNet-Is-it-possible-to-create-an-elevation-Profile-layer-using-Arc-Engine" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/52661-DotNet-Is-it-possible-to-create-an-elevation-Profile-layer-using-Arc-Engine&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The objective is to &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;create a dataset from a folder containing .HGT files&lt;/STRONG&gt;&lt;SPAN&gt; (SRTM data) &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;programatically&lt;/SPAN&gt;&lt;SPAN&gt;, and then to &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt; create an elevation layer from the dataset&lt;/STRONG&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible for ArcEngine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The closest documentation example I have found only refers to .gdb data file under the topic "&lt;/SPAN&gt;&lt;SPAN style="color: &amp;quot;#0000FF&amp;quot;; font-style: italic;"&gt;How to open a terrain dataset&lt;/SPAN&gt;&lt;SPAN&gt;" :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;IWorkspaceFactory WSFact = new FileGDBWorkspaceFactoryClass(); IFeatureWorkspace FWS; FWS = WSFact.OpenFromFile("C:\\project\\terrain.gdb", 0)as IFeatureWorkspace;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried working with &lt;/SPAN&gt;&lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;IRasterDataset&lt;/STRONG&gt;&lt;SPAN&gt; in a similar manner to opening raster maps but this is obviously not the correct interface to read elevation data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What namespace must be used to read .hgt files from a file folder (with the intention of creating an elevation layer later)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE [1] : Having a look at the Visual Studio DotNet "Map Control Application" Template, the add data dialog provides for 5 different types of data &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Shape files &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) GeoDatabases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Rasters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Servers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but these options do not include support for SRTM data - is there a sample / template available which describes how SRTM data can be imported?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 08:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71192#M1905</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-03-13T08:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trying raster datasets to read SRTM data</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71193#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009t0000000q000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009t0000000q000000&lt;/A&gt;&lt;SPAN&gt; shows that STRM data is indeed supported by Raster datasets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why the does last line in the code segment below fail with a '&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;HRESULT = E_FAIL&lt;/SPAN&gt;&lt;SPAN&gt;' ComException when the relevant folder contains only valid .hgt files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string filePath = @"C:\Elevation Files\srtm";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspaceFactory workspaceFactory = new RasterWorkspaceFactoryClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRasterWorkspace rasterWorkspace = (IRasterWorkspace)workspaceFactory.OpenFromFile(filePath, 0);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71193#M1906</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2021-12-10T22:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation lay</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71194#M1907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not familiar with that type of data but according to the chart in the link you provided it is a single file with the *.hgt extension.&amp;nbsp; So, to open it using a raster workspace I would guess that you need to provide the path to the file instead of the path to the folder when opening the workspace.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 12:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71194#M1907</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-03-13T12:11:31Z</dc:date>
    </item>
    <item>
      <title>SRTM not supported for ArcEngine</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71195#M1908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No luck there - specifying the filename throws the same exception &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was actually quite a critical requirement we specified when purchasing ArcObjects 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you be able to confirm whether the supported raster dataset formats mentioned in &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009t0000000q000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009t0000000q000000&lt;/A&gt;&lt;SPAN&gt; apply to ArcDesktop desktop only?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd have to get back to the ESRI product specialist in that case &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 12:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71195#M1908</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-03-13T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation lay</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71196#M1909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to make sure the problem isn't something else, is your application binding to a product and checking out a license before you attempt to run this code?&amp;nbsp; You'd get the same type of error at the same line of code if the application isn't initialized with a proper license.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 13:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71196#M1909</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-03-13T13:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation lay</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71197#M1910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Agreed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've successfully tested loading and displaying of tiff files, shapefiles, character symbols (using the tracking layer) and several other features with the same WinForms test application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the following code to authenticate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (RuntimeManager.Bind(ProductCode.Engine))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; licenseController = licenseController ?? new AoInitializeClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriLicenseStatus licenseStatus = licenseController.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeEngine);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (licenseStatus == esriLicenseStatus.esriLicenseAlreadyInitialized ||
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; licenseStatus == esriLicenseStatus.esriLicenseCheckedOut)
&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; result = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71197#M1910</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2021-12-10T22:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation lay</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71198#M1911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That looks correct to me.&amp;nbsp; One thing I would try is to load this data as a layer into ArcMap.&amp;nbsp; Right click the layer and save it out as a layer file then load the layer file into your map control using IMapControl.AddLayerFromFile and see what happens.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 13:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71198#M1911</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-03-13T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Loading SRTM data into a dataset</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71199#M1912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately I have only been given ArcEngine to work with (EDN) : Our upgrade from MapObjects is very specific to a custom stand alone application - with very specific functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus our requirement for being able to manually manipulate data (raster map data, SRTM elevation data, shapefile data, etc), while also benefiting from new features and speed improvements in ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The ESRI marketing consultant assured us that we would be able to do everything we were previously doing with MapObjects, in ArcObjects 10 - in addition to certain new features (such as being able to import SRTM data).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried checking the web quickly for an ArcObjects elevation layer data file, but can't find one - even with the help of all-powerful google. I obviously havn't looked hard enough :j&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the mean time, I'm going to attach one of the SRTM files that I'm trying to work with : N10E012.zip�??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 13:50:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71199#M1912</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-03-13T13:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation lay</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71200#M1913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should have some time later today to see if I can load the data you posted into ArcMap through code.&amp;nbsp; I don't have a current EDN subscription so I can't try it with an Engine app but the process should be the same.&amp;nbsp; I'll let you know if I manage to figure it out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 13:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71200#M1913</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-03-13T13:53:52Z</dc:date>
    </item>
    <item>
      <title>SRTM data in ArcEngine</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71201#M1914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Much appreciated - thanks for the help thus far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that the path I'm walking down is not very popular - ESRI undoubtedly wants customers to stick with their flagship products : ArcDesktop, View, Map etc. and customize them only when necessary - instead of using their own SDK to redevelop features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In our defence I must state that we are upgrading a product which used MapObjects 2.2 - and want to keep functional and interface changes to a minimum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My bad feeling at this point is that we're still going to be implementing a lot of features ourselves (e.g. terrain profile) if it turns out to be this difficult just to find out how to load STRM data into a data set.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 14:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71201#M1914</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-03-13T14:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: SRTM data in ArcEngine</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71202#M1915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Much appreciated - thanks for the help thus far.&lt;BR /&gt;&lt;BR /&gt;It seems that the path I'm walking down is not very popular - ESRI undoubtedly wants customers to stick with their flagship products : ArcDesktop, View, Map etc. and customize them only when necessary - instead of using their own SDK to redevelop features.&lt;BR /&gt;In our defence I must state that we are upgrading a product which used MapObjects 2.2 - and want to keep functional and interface changes to a minimum.&lt;BR /&gt;&lt;BR /&gt;My bad feeling at this point is that we're still going to be implementing a lot of features ourselves (e.g. terrain profile) if it turns out to be this difficult just to find out how to load STRM data into a data set.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The file loads using the esriControls.ControlsAddDataCommand. (That extension does not show but the file does load.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 19:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71202#M1915</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2012-03-13T19:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] [DotNet] How to load .hgt files into a dataset and then elevation lay</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71203#M1916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following worked for me as far as getting the data into ArcMap.&amp;nbsp; I wasn't able to figure out how to access the data through a workspace though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim rasterLayer As ESRI.ArcGIS.Carto.IRasterLayer = New ESRI.ArcGIS.Carto.RasterLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rasterLayer.CreateFromFilePath("E:\Development\N10E012.hgt")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rasterLayer.Name = "test layer"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DirectCast(m_application.Document, IMxDocument).FocusMap.AddLayer(rasterLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DirectCast(m_application.Document, IMxDocument).UpdateContents()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for having to recreate functionality for your app, be sure to investigate all of the builtin tools that Engine offers as well as the geoprocessing library.&amp;nbsp; There's quite a bit of functionality there may be something you can use in your app.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71203#M1916</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2021-12-10T22:45:02Z</dc:date>
    </item>
    <item>
      <title>Problem solved</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71204#M1917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Neil and Charles, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your success with loading the file prompted me to double check my code again - and to my surprise the problem was exactly what Neil suggested in the first place : the pathname. (so I'm marking that as the solution)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt; IRasterWorkspace rasterWorkspace = (IRasterWorkspace)workspaceFactory.OpenFromFile(folderPath, 0); &lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp; expects a &lt;/SPAN&gt;&lt;STRONG&gt;folder path&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt; IRasterDataset rasterDataset = rasterWorkspace.OpenRasterDataset(filename); &lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp; expects a &lt;/SPAN&gt;&lt;STRONG&gt;filename&lt;/STRONG&gt;&lt;SPAN&gt; (without path).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One could probably argue that OpenFromFile is misleading (because we're passing a folder path, where the method name is suggesting a filename) - but the documentation does state that the parameter may be either filename or directory. I assume that the forum MVP's have had to suggest this on numerous occasions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 06:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-dotnet-how-to-load-hgt-files-into-a/m-p/71204#M1917</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-03-14T06:49:36Z</dc:date>
    </item>
  </channel>
</rss>

