<?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: Saving results of GP tool in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803415#M2055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works for number outputs, but how can you save a raster output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2019 20:12:52 GMT</pubDate>
    <dc:creator>BenRufenacht</dc:creator>
    <dc:date>2019-04-22T20:12:52Z</dc:date>
    <item>
      <title>Saving results of GP tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803413#M2053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some GP tools does not have a output parameter but return some kind of objects that should be saved after.&lt;/P&gt;&lt;P&gt;Many&amp;nbsp;of the sa commands (for example&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/image-analyst/abs.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/image-analyst/abs.htm"&gt;Abs—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; ) return a value that must be saved.&lt;/P&gt;&lt;P&gt;After I run&amp;nbsp;&amp;nbsp;var result = Geoprocessing.ExecuteToolAsync(...)&amp;nbsp; How do I make me result permanent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 13:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803413#M2053</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2019-03-21T13:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Saving results of GP tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803414#M2054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mody,&lt;/P&gt;&lt;P&gt;Look at the&amp;nbsp;piece of code below that return minimum value of specific table field. I hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var parameters = Geoprocessing.MakeValueArray(pFeatClass, string.Format("[[{0}, MIN]]", sAreaField));&lt;/P&gt;&lt;P&gt;var gpResult = Geoprocessing.ExecuteToolAsync("Statistics_analysis", parameters);&lt;/P&gt;&lt;P&gt;double dMin = Convert.ToDouble(gpResult.Result.Values[0]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 08:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803414#M2054</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2019-03-22T08:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Saving results of GP tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803415#M2055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works for number outputs, but how can you save a raster output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 20:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803415#M2055</guid>
      <dc:creator>BenRufenacht</dc:creator>
      <dc:date>2019-04-22T20:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Saving results of GP tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803416#M2056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;You need to check the type of your output. Try to cast to Raster. If it is Raster then use SaveAs method.&lt;/P&gt;&lt;P&gt;If it is string then open it as Raster and use SaveAs method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 07:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803416#M2056</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2019-04-23T07:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Saving results of GP tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803417#M2057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I was able to get the string of the raster storage path. I did not realise that these tools generated the raster results in the scratch workspace with an arbitrary name. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 16:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803417#M2057</guid>
      <dc:creator>BenRufenacht</dc:creator>
      <dc:date>2019-04-26T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Saving results of GP tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803418#M2058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...for large output you may want to rather use your output workspace in place of the scratch workspace so that save will internally do a rename rather than a copy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 16:56:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/saving-results-of-gp-tool/m-p/803418#M2058</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2019-04-26T16:56:01Z</dc:date>
    </item>
  </channel>
</rss>

