<?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: help me ! there are error when executing  IZonalOp.ZonalStatisticsAsTable in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/help-me-there-are-error-when-executing-nbsp/m-p/32653#M851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No one can help me? Damn it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 07:22:30 GMT</pubDate>
    <dc:creator>zhenliu</dc:creator>
    <dc:date>2013-07-25T07:22:30Z</dc:date>
    <item>
      <title>help me ! there are error when executing  IZonalOp.ZonalStatisticsAsTable</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/help-me-there-are-error-when-executing-nbsp/m-p/32652#M850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I use tool zonalstatistics as table or zonstatistics in ArcToolBox 10.1,I can get the result without error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I use C# and IZonalOp.ZonalStatisticsAsTable( or pZonalOp.ZonalStatistics ) in ArcObjects 10.1,There are error as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010316: Unable to open the input raster: C:\USERS\ADMINI~1\APPDATA\LOCAL\TEMP\G_G722&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read many posts,but no one can...:(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My codes are listed as follows.Help Me!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
ISurfaceOp2 pSurfaceOp = new RasterSurfaceOpClass();
object Missing = Type.Missing;
IRasterDataset rasterDataset = default(IRasterDataset);
rasterDataset = pdemWorkspace.OpenRasterDataset(demName);//"SDE.Slope_SDE1"
IGeoDataset pdemGeoDs = (IGeoDataset)rasterDataset;
IGeoDataset pOutputRaster = pSurfaceOp.Slope(pdemGeoDs, esriGeoAnalysisSlopeEnum.esriGeoAnalysisSlopeDegrees, ref Missing);//ç??æ??å?¡åº¦å?¾generate a slope map
IFeatureClass pgridfeatClass = default(IFeatureClass);
 pgridfeatClass = pgridWorkspace.OpenFeatureClass(gridName);
IGeoDataset pgridDs = pgridfeatClass as IGeoDataset;
IZonalOp pZonalOp = new RasterZonalOpClass();
ITable pTable = pZonalOp.ZonalStatisticsAsTable(pgridDs, pOutputRaster, true);//Error occurs&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 15:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/help-me-there-are-error-when-executing-nbsp/m-p/32652#M850</guid>
      <dc:creator>zhenliu</dc:creator>
      <dc:date>2021-12-12T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: help me ! there are error when executing  IZonalOp.ZonalStatisticsAsTable</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/help-me-there-are-error-when-executing-nbsp/m-p/32653#M851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No one can help me? Damn it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 07:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/help-me-there-are-error-when-executing-nbsp/m-p/32653#M851</guid>
      <dc:creator>zhenliu</dc:creator>
      <dc:date>2013-07-25T07:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: help me ! there are error when executing  IZonalOp.ZonalStatisticsAsTable</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/help-me-there-are-error-when-executing-nbsp/m-p/32654#M852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zhen,&lt;/P&gt;&lt;P&gt;did you solve the problem? I've a similar problem when I try to use IMath.Times with grid stored in a file personal gdb (arcgis 10.2 vb.net)&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/help-me-there-are-error-when-executing-nbsp/m-p/32654#M852</guid>
      <dc:creator>MarcoBelotti</dc:creator>
      <dc:date>2015-03-03T15:14:15Z</dc:date>
    </item>
  </channel>
</rss>

