<?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: Hillshade.java error messages in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25178#M653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you install ArcObjects Java SDK? Once you install that then you can see the folder&lt;A href="mailto:folder.@KwasiAsante"&gt; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.btw Special thanks to &lt;A href="https://community.esri.com/migrated-users/48203"&gt;Kwasi Asante&lt;/A&gt;‌, he helped me run the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 15:51:56 GMT</pubDate>
    <dc:creator>ShriramBhutada1</dc:creator>
    <dc:date>2014-09-24T15:51:56Z</dc:date>
    <item>
      <title>Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25166#M641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;while start running HillshadeCommand in eclipse&amp;nbsp; I got these error messages, even-though there was no error in the code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting HillshadeCommand - An ArcObjects SDK Developer Sample&lt;/P&gt;&lt;P&gt;java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path&lt;/P&gt;&lt;P&gt;Could not load native libraries.&lt;/P&gt;&lt;P&gt;java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path&lt;/P&gt;&lt;P&gt;&amp;nbsp; at java.lang.ClassLoader.loadLibrary(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at java.lang.Runtime.loadLibrary0(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at java.lang.System.loadLibrary(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at com.esri.arcgis.interop.NativeLoader.loadLibrary(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at com.esri.arcgis.system.EngineInitializer.initializeEngine(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at HillshadeCommand.main(HillshadeCommand.java:45)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 20:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25166#M641</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-22T20:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25167#M642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feras,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the KB article&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&amp;amp;d=29348" target="_new" title="http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&amp;amp;d=29348"&gt;29348 - java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=159&amp;amp;f=2267&amp;amp;t=257457" title="http://forums.esri.com/Thread.asp?c=159&amp;amp;f=2267&amp;amp;t=257457"&gt;java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;The PATH variable does not include a directory which contains the native libraries required for ArcObjects Java classes to function.&lt;/P&gt;&lt;H4&gt;Solution or Workaround&lt;/H4&gt;&lt;P&gt;Add the directory that contains the native libraries needed by ArcObjects Java to the PATH variable.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On both Windows and Unix platforms, add either of the following directories to the PATH variable: &lt;BR /&gt;&lt;BR /&gt;A. $ARCENGINEHOME\java\jre\bin &lt;BR /&gt;B. $ARCENGINEHOME\bin &lt;IMG class="jive-image" src="http://support.esri.com/includes/images/knowledgebase/icons/note.gif" /&gt; $ARCENGINEHOME may need to be replaced with the location of the ArcGIS SDK installation."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 20:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25167#M642</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-22T20:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25168#M643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Shriram,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I updated the Path to include "C:\Program Files (x86)\ArcGIS\Desktop10.2\java\jre\bin"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But still the problem is not resolved, would you please elaborate more on it, I am new in this domain&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Feras&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25168#M643</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-23T15:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25169#M644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Feras,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure. Hope this information is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, please make sure you meet the system requirements &lt;A href="http://resources.arcgis.com/en/help/system-requirements/10.2/#/ArcObjects_SDK/01510000006n000000/" title="http://resources.arcgis.com/en/help/system-requirements/10.2/#/ArcObjects_SDK/01510000006n000000/"&gt;System Requirements&lt;/A&gt; &lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P style="margin: 0.5em 0px 0.5em 10px; padding: 0px 0px 2px; color: #4d4d4d; text-indent: 0px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;ArcGIS for Desktop&lt;/SPAN&gt;, ArcGIS Engine, or&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;ArcGIS for Server&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;is required to develop with ArcObjects SDK.&lt;/P&gt;&lt;P style="margin: 0.5em 0px 0.5em 10px; padding: 0px 0px 2px; color: #4d4d4d; text-indent: 0px;"&gt;Java Development Kit (JDK) version 6. Update 20 and above are supported.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, make sure you are pointing to 32bit jre when using eclipse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25169#M644</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-23T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25170#M645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shriam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have on my system related to ArcGIS:&lt;/P&gt;&lt;P&gt;- C:\Program Files (x86)\ArcGIS\Desktop10.2&lt;/P&gt;&lt;P&gt;- C:\Program Files (x86)\ArcGIS SDKs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eclipse is working fine, as I tested it with other ArcGIS application (DrawingOverlayApp) and it works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:36:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25170#M645</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-23T15:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25171#M646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feras,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure of the exact problem. But at higher level, here is the direction I would go to troubleshoot the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem is not with the code, not the with java environment then I would say check the licenses. Seems like this sample requires 3d analyst extension - do you have those licenses available? Also if at all you are working data that is something you need to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25171#M646</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-23T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25172#M647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took the code from this site, I copied it into my Eclipse and just ran it. First there were problem highlighted in red and then I added the external libraries arcobjects.jar to get that resolved. Then, I simply run it and got the error. Yes I have the licence, how this can be used within the code? do you have other example that's working with a sample file. &lt;/P&gt;&lt;P&gt;Very much appreciated Shriram!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the code which I copied:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from: &lt;A href="http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/index.html#//0001000005v7000000" title="http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/index.html#//0001000005v7000000"&gt;ArcObjects Help for Java developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;/* Copyright 2012 ESRI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* All rights reserved under the copyright laws of the United States&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* and applicable international laws, treaties, and conventions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* You may freely redistribute and use this sample code, with or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* without modification, provided you include the original copyright&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* notice and use restrictions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* See &lt;A href="http://resourcesbeta.arcgis.com/en/help/arcobjects-net/usagerestrictions.htm" rel="http://resourcesbeta.arcgis.com/en/help/arcobjects-net/usagerestrictions.htm" style="color: #007ac2; text-decoration: underline;"&gt;the use restrictions&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;* &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;package&lt;/SPAN&gt; arcgissamples.analyst3d;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; java.io.File;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; java.io.IOException;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.datasourcesfile.TinWorkspaceFactory;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.datasourcesraster.DblPnt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.datasourcesraster.Raster;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.datasourcesraster.RasterBand;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.datasourcesraster.RasterDataset;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.datasourcesraster.RasterWorkspace;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.datasourcesraster.RasterWorkspaceFactory;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geoanalyst.RasterSurfaceOp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.IGeoDataset;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.IPixelBlock;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.IRaster;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.IRasterDataset;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.IRasterProxy;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.Tin;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.esriRasterizationType;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geodatabase.rstPixelType;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geometry.Envelope;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geometry.ISpatialReference;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.geometry.Point;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.system.AoInitialize;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.system.EngineInitializer;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.system.esriLicenseExtensionCode;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.system.esriLicenseProductCode;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; com.esri.arcgis.system.esriLicenseStatus;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;public&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;class&lt;/SPAN&gt; HillshadeCommand {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;public&lt;/SPAN&gt; HillshadeCommand(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * Main Method - The console application entry point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param args String[] Command line argument&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;public&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;static&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;void&lt;/SPAN&gt; main(String[] args) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Starting HillshadeCommand - An ArcObjects SDK Developer Sample"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;try&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Initialize engine console application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EngineInitializer.initializeEngine();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Initialize ArcGIS license&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; AoInitialize aoInit = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; AoInitialize();&lt;/P&gt;&lt;P&gt;&amp;nbsp; initializeArcGISLicenses(aoInit);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Get DEVKITHOME Home&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; String devKitHome = System.getenv(&lt;SPAN class="str" style="color: maroon;"&gt;"AGSDEVKITJAVA"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Data for an input Raster&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; azimuth = 315;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; altitude = 45;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Data access setup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; String inDataPath = devKitHome + &lt;SPAN class="str" style="color: maroon;"&gt;"java"&lt;/SPAN&gt; + File.separator + &lt;SPAN class="str" style="color: maroon;"&gt;"samples"&lt;/SPAN&gt; + File.separator &lt;/P&gt;&lt;P&gt;&amp;nbsp; + &lt;SPAN class="str" style="color: maroon;"&gt;"data"&lt;/SPAN&gt; + File.separator + &lt;SPAN class="str" style="color: maroon;"&gt;"raster"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(inDataPath);&lt;/P&gt;&lt;P&gt;&amp;nbsp; String inDataName = &lt;SPAN class="str" style="color: maroon;"&gt;"dem1"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Data for an input TIN (swap the above code with this code to test with TIN input)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//String inDataPath = arcGISHome + "java" + File.separator + "samples" + File.separator&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;// + "data" + File.separator + "site1";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//String inDataName = "dtm_tin";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Data output setup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; String outDataPath = getOutputDir() + File.separator + &lt;SPAN class="str" style="color: maroon;"&gt;"hillshadecommand"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; String outDataName = &lt;SPAN class="str" style="color: maroon;"&gt;"hillshade"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File outData = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; File(outDataPath);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (outData.exists()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Output datafile already exists: "&lt;/SPAN&gt; + outData.getAbsolutePath());&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Delete it and rerun."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Exiting..."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.exit(-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; outData.mkdirs();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Using default Azimuth value "&lt;/SPAN&gt; + azimuth + &lt;SPAN class="str" style="color: maroon;"&gt;" and Altitude "&lt;/SPAN&gt; + altitude);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; HillshadeCommand hillshadeCommand = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; HillshadeCommand();&lt;/P&gt;&lt;P&gt;&amp;nbsp; hillshadeCommand.createHillshade(inDataPath, inDataName, outData.getAbsolutePath(), outDataName, azimuth, altitude);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Done. Output files created in "&lt;/SPAN&gt; + outData.getAbsolutePath());&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Ensure any ESRI libraries are unloaded in the correct order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; aoInit.checkInExtension(esriLicenseExtensionCode.esriLicenseExtensionCode3DAnalyst);&lt;/P&gt;&lt;P&gt;&amp;nbsp; aoInit.shutdown();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;catch&lt;/SPAN&gt;(Exception e){&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Error: "&lt;/SPAN&gt; + e.getMessage());&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.exit(-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * Checks to see if an ArcGIS Engine Runtime license or an Basic License&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * is available. If so, then the appropriate ArcGIS License is initialized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param aoInit The AoInitialize object instantiated in the main method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;private&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;static&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;void&lt;/SPAN&gt; initializeArcGISLicenses(AoInitialize aoInit) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;try&lt;/SPAN&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (aoInit.isProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeEngine) &lt;/P&gt;&lt;P&gt;&amp;nbsp; == esriLicenseStatus.esriLicenseAvailable)&lt;/P&gt;&lt;P&gt;&amp;nbsp; aoInit.initialize(esriLicenseProductCode.esriLicenseProductCodeEngine);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;else&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (aoInit.isProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeBasic) &lt;/P&gt;&lt;P&gt;&amp;nbsp; == esriLicenseStatus.esriLicenseAvailable)&lt;/P&gt;&lt;P&gt;&amp;nbsp; aoInit.initialize(esriLicenseProductCode.esriLicenseProductCodeBasic);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.err.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Could not initialize an Engine or Basic License. Exiting application."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.exit(-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; aoInit.checkOutExtension(esriLicenseExtensionCode.esriLicenseExtensionCode3DAnalyst);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;catch&lt;/SPAN&gt; (Exception e) {e.printStackTrace();}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param inDataPath - path to input data source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param inDataName - name of input data source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param outDataPath - path to output data source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param outDataName - name of output data source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param azimuth - angular direction of the sun, measured from north in clockwise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * degrees from 0 to 360&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param altitude - the slope or angle of the illumination source above the horizon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * the units are degress from 0 (on the horizon) to 90 (overhead)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @throws Exception&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @throws IOException&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;private&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;void&lt;/SPAN&gt; createHillshade(String inDataPath, String inDataName, String outDataPath, String outDataName, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; azimuth, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; altitude) &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throws&lt;/SPAN&gt; Exception {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;try&lt;/SPAN&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Define raster workspace factory object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterWorkspaceFactory rasWkspFactory = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; RasterWorkspaceFactory();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Define tin workspace factory object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TinWorkspaceFactory tinWkspFactory = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; TinWorkspaceFactory();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Test what type of workspace we are dealing with. There are two possible&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//cases: 1. RasterWorkspaceFactory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;// 2. TinWorkspaceFactory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//The first case handles raster workspace factories, while the second handles&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//tin workspace factories.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (rasWkspFactory.isWorkspace(inDataPath) &amp;amp;&amp;amp; !tinWkspFactory.isWorkspace(inDataPath)){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Ouputting some useful information to let developer know which workspace &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//is being processed by the hillshade command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File workspaceDir = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; File(inDataPath, inDataName);&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Opening raster workspace "&lt;/SPAN&gt; + workspaceDir.getAbsolutePath() + &lt;SPAN class="str" style="color: maroon;"&gt;" and getting its dataset ..."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Get the raster workspace and it's dataset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterWorkspace rasWksp = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; RasterWorkspace(rasWkspFactory.openFromFile(inDataPath, 0));&lt;/P&gt;&lt;P&gt;&amp;nbsp; IRasterDataset iRasterDataset = rasWksp.openRasterDataset(inDataName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Check if the raster is not of type RasterDataset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (!(iRasterDataset &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;instanceof&lt;/SPAN&gt; RasterDataset)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"The raster isn't a RasterDataset"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throw&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; Exception();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Cast to RasterDataset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterDataset inRasDataset = (RasterDataset) iRasterDataset;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//RasterSurfaceOp contains the hillshade command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterSurfaceOp surface = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; RasterSurfaceOp();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Create the hillshade data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Creating hillshade data ..."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; IGeoDataset geoDataset = surface.hillShade(inRasDataset, azimuth, altitude, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;true&lt;/SPAN&gt;, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;null&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Castto raster&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IRaster outRaster = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; IRasterProxy(geoDataset);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Save the raster to disk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; saveGridToDisk(&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; Raster(outRaster), outDataPath, outDataName);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;else&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (tinWkspFactory.isWorkspace(inDataPath)){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Ouputting some useful information to let developer know which workspace &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//is being processed by the hillshade command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File workspaceDir = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; File(inDataPath, inDataName);&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;" "&lt;/SPAN&gt; + workspaceDir.getAbsolutePath() + &lt;SPAN class="str" style="color: maroon;"&gt;" is a valid Tin Workspace"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Instantiate a tin object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tin tin = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; Tin();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Get a path to the source data including the file name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; String path = inDataPath + File.separator + inDataName;&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;" Path to Tin: "&lt;/SPAN&gt; + path);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Initialize the tin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tin.init(path);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Use the tin's extent to get width and height of the Envelope&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//(i.e. Minimum bounding box)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Envelope extent = (Envelope) tin.getExtent();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; dx = extent.getWidth();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; dy = extent.getHeight();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Determine the cell size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; cellsize;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(dx &amp;gt; dy){&lt;/P&gt;&lt;P&gt;&amp;nbsp; cellsize = Math.round(dx/249);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; cellsize = Math.round(dy/249);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Supported pixel types limited to float and long because&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//output currently limited to native ESRI Grid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tinToRaster(tin, esriRasterizationType.esriHillShadeAsRaster, outDataPath, outDataName, cellsize, extent);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Program failed. Check input data path and name."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throw&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; Exception();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;catch&lt;/SPAN&gt; (Exception e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throw&lt;/SPAN&gt; e;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * Converts a tin to raster &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param tin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param aRasterizationType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param inDataPath&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param inDataName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param cellsize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param extent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @throws IOException&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;private&lt;/SPAN&gt; RasterDataset tinToRaster(Tin tin, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; aRasterizationType, String inDataPath, String inDataName, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; cellsize, Envelope extent) &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throws&lt;/SPAN&gt; IOException {&lt;/P&gt;&lt;P&gt;&amp;nbsp; Point origin = (Point) extent.getLowerLeft();&lt;/P&gt;&lt;P&gt;&amp;nbsp; origin.setX(origin.getX() - (cellsize * .05));&lt;/P&gt;&lt;P&gt;&amp;nbsp; origin.setY(origin.getY() - (cellsize * .05));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; nCol = (&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt;)Math.round((extent.getWidth() / cellsize) + 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; nRow = (&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt;)Math.round((extent.getHeight() / cellsize) + 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ISpatialReference spatialRef = tin.getSpatialReference();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterDataset rasterDataset = createRasterDataset(inDataPath, inDataName, &lt;SPAN class="str" style="color: maroon;"&gt;"GRID"&lt;/SPAN&gt;, origin, nCol, nRow, cellsize, cellsize, rstPixelType.PT_LONG, spatialRef, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;true&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterBand rasterBand = (RasterBand) rasterDataset.item(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Object nodataInt = rasterBand.getNoDataValue();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DblPnt offset = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; DblPnt();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; mxblk_x = 2048;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; mxblk_y = 2048;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(nCol &amp;lt; mxblk_x){&lt;/P&gt;&lt;P&gt;&amp;nbsp; mxblk_x = nCol;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(nRow &amp;lt; mxblk_y){&lt;/P&gt;&lt;P&gt;&amp;nbsp; mxblk_y = nRow;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; DblPnt blkSize = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; DblPnt();&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkSize.setX(mxblk_x);&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkSize.setY(mxblk_y);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Object blkArray;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IPixelBlock pixelBlk = rasterBand.createPixelBlock(blkSize);&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkArray = pixelBlk.getSafeArray(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Point blkOrigin = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; Point();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;for&lt;/SPAN&gt; (&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; iRowOffset = 0; iRowOffset &amp;lt; nRow; iRowOffset = iRowOffset + mxblk_y) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;for&lt;/SPAN&gt; (&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; iColOffset = 0; iColOffset &amp;lt; nCol; iColOffset = iColOffset + mxblk_x) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; ((nCol - iColOffset) &amp;lt; mxblk_x) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkSize.setX(nCol - iColOffset);&lt;/P&gt;&lt;P&gt;&amp;nbsp; pixelBlk = rasterBand.createPixelBlock(blkSize);&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkArray = pixelBlk.getSafeArray(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; blkOrigin.setX(origin.getX() + (iColOffset * cellsize) + (cellsize * 0.5));&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkOrigin.setY(origin.getY() + ((nRow - iRowOffset) * cellsize) - (cellsize * 0.5));&lt;/P&gt;&lt;P&gt;&amp;nbsp; tin.queryPixelBlock(blkOrigin.getX(), blkOrigin.getY(), cellsize, cellsize, aRasterizationType, nodataInt, blkArray);&lt;/P&gt;&lt;P&gt;&amp;nbsp; offset.setX(iColOffset);&lt;/P&gt;&lt;P&gt;&amp;nbsp; offset.setY(iRowOffset);&lt;/P&gt;&lt;P&gt;&amp;nbsp; rasterBand.write(offset, pixelBlk);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;boolean&lt;/SPAN&gt; reset = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;false&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (!(blkSize.getX() == mxblk_x)){&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkSize.setX(mxblk_x);&lt;/P&gt;&lt;P&gt;&amp;nbsp; reset = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;true&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; ((nRow - iRowOffset) &amp;lt; mxblk_y){&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkSize.setY(nRow - iRowOffset);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (reset){&lt;/P&gt;&lt;P&gt;&amp;nbsp; pixelBlk = rasterBand.createPixelBlock(blkSize);&lt;/P&gt;&lt;P&gt;&amp;nbsp; blkArray = pixelBlk.getSafeArray(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;return&lt;/SPAN&gt; rasterDataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * Create a raster dataset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param inDataPath&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param inDataName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param origin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param nCol&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param nRow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param cellsizeX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param cellsizeY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param ePixelType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param spatialRef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param permanent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @throws IOException&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;private&lt;/SPAN&gt; RasterDataset createRasterDataset(String inDataPath, String inDataName, String format, Point origin, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; nCol, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; nRow, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; cellsizeX, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;double&lt;/SPAN&gt; cellsizeY, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; ePixelType, ISpatialReference spatialRef, &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;boolean&lt;/SPAN&gt; permanent) &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throws&lt;/SPAN&gt; IOException {&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterWorkspaceFactory rasterWorkspaceFactory = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; RasterWorkspaceFactory();&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterWorkspace rasterWorkspace = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; RasterWorkspace(rasterWorkspaceFactory.openFromFile(inDataPath, 0));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;int&lt;/SPAN&gt; numbands = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterDataset rasterDataset = (RasterDataset) rasterWorkspace.createRasterDataset(inDataName, format, origin, nCol, nRow, cellsizeX, cellsizeY, numbands, ePixelType,spatialRef, permanent);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;return&lt;/SPAN&gt; rasterDataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * Saves a raster to disk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param raster - input raster&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param outDataPath - path to output data source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @param outDataName - name of input data source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;private&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;void&lt;/SPAN&gt; saveGridToDisk(Raster raster, String outDataPath, String outDataName) &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throws&lt;/SPAN&gt; IOException {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;try&lt;/SPAN&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Obtain a raster workspace factory object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterWorkspaceFactory rasWkspFactory = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; RasterWorkspaceFactory();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Get the raster workspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//We can safely assume that this is RasterWorkspace based on the conditional&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//testing done in the createHillshade().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RasterWorkspace rasterWorkspace = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; RasterWorkspace(rasWkspFactory.openFromFile(outDataPath, 0));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; raster.saveAs(outDataName, rasterWorkspace, &lt;SPAN class="str" style="color: maroon;"&gt;"GRID"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;catch&lt;/SPAN&gt; (IOException e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Could not save raster as grid data to disk."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;throw&lt;/SPAN&gt; e;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;/**&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * Convenience method to generate an output directory based on the operating&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * system that the sample is being executed on. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; * @return A path to the new directory is return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;private&lt;/SPAN&gt; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;static&lt;/SPAN&gt; String getOutputDir() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; String userDir;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//Get the operating systems user profile or home location depending&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="rem" style="color: #008000;"&gt;//on which operating system this sample is executed on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(System.getProperty(&lt;SPAN class="str" style="color: maroon;"&gt;"os.name"&lt;/SPAN&gt;).toLowerCase().indexOf(&lt;SPAN class="str" style="color: maroon;"&gt;"win"&lt;/SPAN&gt;) &amp;gt; -1){&lt;/P&gt;&lt;P&gt;&amp;nbsp; userDir = System.getenv(&lt;SPAN class="str" style="color: maroon;"&gt;"UserProfile"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; userDir = System.getenv(&lt;SPAN class="str" style="color: maroon;"&gt;"HOME"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; String outputDir = userDir + File.separator + &lt;SPAN class="str" style="color: maroon;"&gt;"arcgis_sample_output"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; System.out.println(&lt;SPAN class="str" style="color: maroon;"&gt;"Creating output directory - "&lt;/SPAN&gt; + outputDir);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; File(outputDir).mkdir();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;return&lt;/SPAN&gt; outputDir;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 16:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25172#M647</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-23T16:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25173#M648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be grateful if you can send me all steps that are required to run HillshadeCommand.java from eclipse .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;However, I was successfully able to run the following class in java through eclipse:&amp;nbsp; DrawingOverlayApp.java&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But still having problem to run HillshadeCommand, I think it will good to start all steps from beginning so I avoid missing any thing? &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;any help ?! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Feras&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 14:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25173#M648</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-24T14:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25174#M649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feras,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I typically work more with .NET Arcobjects rather than on Java Arcobjects. Having said that, I'll see what I can do about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw - do you have ESRI technical support account?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shriram B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 14:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25174#M649</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-24T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25175#M650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I don't have &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ESRI technical support account.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks for help in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Feras&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 14:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25175#M650</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-24T14:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25176#M651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feras,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With help of one of my collegue, Kwasi A, I was able to run the sample successfully.. makes sure you have "C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster" folder on your system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll send the zipped project as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting HillshadeCommand - An ArcObjects SDK Developer Sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating output directory - C:\Users\shri7493\arcgis_sample_output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using default Azimuth value 315.0 and Altitude 45.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening raster workspace C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster\dem1 and getting its dataset ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating hillshade data ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Done.&amp;nbsp; Output files created in C:\Users\shri\arcgis_sample_output\hillshadecommand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;App Data = C:\Users\shri\AppData\Local&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log file path = C:\Users\shri\AppData\Local\ESRI\Engine10.2\Java\Log&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 15:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25176#M651</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-24T15:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25177#M652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shriran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;however, I don't have DeveloperKit10.2 under ArcGIS&lt;/P&gt;&lt;P&gt;I searched for it and I didn't find this folder, under ArcGIS I have: C:\Program Files (x86)\ArcGIS\Desktop10.2 which contains other folders like ArcGlobeData, arcpy, ...Attached is a snapshot of what I have under this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 15:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25177#M652</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-24T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25178#M653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you install ArcObjects Java SDK? Once you install that then you can see the folder&lt;A href="mailto:folder.@KwasiAsante"&gt; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.btw Special thanks to &lt;A href="https://community.esri.com/migrated-users/48203"&gt;Kwasi Asante&lt;/A&gt;‌, he helped me run the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 15:51:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25178#M653</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-24T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25179#M654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DeveloperKit10.2 folder should be under C:\Program Files (x86)\ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 16:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25179#M654</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-24T16:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25180#M655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I would be grateful if you guide me on how to install the developer kit. I saw some sites but was not clear for me&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;my phone is 519 661-2111 ext 82253&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Feras&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 16:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25180#M655</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-24T16:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25181#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I installed jre6 insteadlooks better and I only have one error at the moment that's :&lt;/P&gt;&lt;P&gt;Starting HillshadeCommand - An ArcObjects SDK Developer Sample&lt;/P&gt;&lt;P&gt;Could not initialize an Engine or Basic License. Exiting application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Feras&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:12:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25181#M656</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-24T18:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25182#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Feras,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you have desktop license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the license binding to deskto =&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;esriLicenseProductCodeAdvanced&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000c0; font-size: 10pt;"&gt;esriLicenseProductCodeEngine&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;~Shriram&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25182#M657</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-24T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25183#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;SPAN&gt;Hello Shriram,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;SPAN&gt;Can you please send me the zipped file that contains raster files ?!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;SPAN&gt;I now have this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Starting HillshadeCommand - An ArcObjects SDK Developer Sample&lt;/P&gt;&lt;P&gt;devKitHome: null&lt;/P&gt;&lt;P&gt;inDataPath: nulljava\samples\data\raster ( I changed the path as follows:)&lt;/P&gt;&lt;P&gt;inDataPath: C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster&lt;/P&gt;&lt;P&gt;Creating output directory - C:\Users\IBM_ADMIN\arcgis_sample_output&lt;/P&gt;&lt;P&gt;Using default Azimuth value 315.0 and Altitude 45.0&lt;/P&gt;&lt;P&gt;Opening raster workspace C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster\dem1 and getting its dataset ...&lt;/P&gt;&lt;P&gt;Error: AutomationException: Failed to open raster dataset&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;SPAN&gt;can I get the contact for &lt;A class="jive-link-email-small" href="mailto:folder.@KwasiAsante" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;"&gt;@KwasiAsante&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;SPAN&gt;Feras&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 14:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25183#M658</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-29T14:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25184#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;This the contents of raster folder on my disk, is that similar to what you have (attached here)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/16415_Untitled.png" style="width: 620px; height: 301px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;A href="https://community.esri.com/migrated-users/48203"&gt;Kwasi Asante&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25184#M659</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-29T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hillshade.java error messages</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25185#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;This the contents of raster folder on my disk as attached , is that similar to what you have?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/16416_Untitled.png" style="width: 620px; height: 301px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hillshade-java-error-messages/m-p/25185#M660</guid>
      <dc:creator>FerasObeidat</dc:creator>
      <dc:date>2014-09-29T17:41:38Z</dc:date>
    </item>
  </channel>
</rss>

