<?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: Use ExecuteToolAsync to run TopoToRaster in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1598507#M12789</link>
    <description>&lt;P&gt;Thank you for the reply. by any chance you know what should be passed as the input feature. The documentation said it needs to specify the elevation field. In my case it will be the&amp;nbsp;&lt;SPAN&gt;TopoPointElevation&amp;nbsp;but Im not sure how to create that in C#.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;below is the explanation of the input feature :&lt;/P&gt;&lt;P&gt;Each feature input can have a field specified that contains the z-values and one of six types specified.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Feature layer&lt;/SPAN&gt;—The input feature dataset.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Field&lt;/SPAN&gt;—The name of the field that stores the attributes, where appropriate.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;—The type of input feature dataset.&lt;BR /&gt;&lt;BR /&gt;and below is the python example it provides:&lt;BR /&gt;&lt;SPAN&gt;outTTR = TopoToRaster([TopoPointElevation([[&lt;/SPAN&gt;&lt;SPAN class=""&gt;'spots'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;'spot_meter'&lt;/SPAN&gt;&lt;SPAN&gt;]]), TopoContour([[&lt;/SPAN&gt;&lt;SPAN class=""&gt;'contours'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;'spot_meter'&lt;/SPAN&gt;&lt;SPAN&gt;]]), TopoCliff([&lt;/SPAN&gt;&lt;SPAN class=""&gt;'cliff'&lt;/SPAN&gt;&lt;SPAN&gt;])], &lt;/SPAN&gt;&lt;SPAN class=""&gt;60&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"NO_ENFORCE"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/tool-reference/spatial-analyst/topo-to-raster.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/3.3/tool-reference/spatial-analyst/topo-to-raster.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2025 14:11:36 GMT</pubDate>
    <dc:creator>sz66666</dc:creator>
    <dc:date>2025-03-24T14:11:36Z</dc:date>
    <item>
      <title>Use ExecuteToolAsync to run TopoToRaster</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1598356#M12781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to use&amp;nbsp;ExecuteToolAsync () to run the tool&amp;nbsp;TopoToRaster but I could not figure it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what the parameters are required to run it.&lt;BR /&gt;can someone help out please?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2025 17:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1598356#M12781</guid>
      <dc:creator>sz66666</dc:creator>
      <dc:date>2025-03-23T17:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use ExecuteToolAsync to run TopoToRaster</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1598401#M12786</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/893439"&gt;@sz66666&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Can you try like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// Create the parameter array for the TopoToRaster tool
var parameters = Geoprocessing.MakeValueArray(
	inTopoFeatures,
	cellSize,
	extent,
	margin,
	minimumZValue,
	maximumZValue,
	enforce,
	dataType,
	maximumIterations,
	roughnessPenalty,
	discreteErrorFactor,
	verticalStandardError,
	tolerance1,
	tolerance2,
	outStreamFeatures,
	outSinkFeatures,
	outDiagnosticFile,
	outParameterFile,
	profilePenalty,
	outResidualFeature,
	outStreamCliffErrorFeature,
	outContourErrorFeature
);

// Set execute flags
GPExecuteToolFlags executeFlags = GPExecuteToolFlags.AddOutputsToMap |
								 GPExecuteToolFlags.GPThread |
								 GPExecuteToolFlags.AddToHistory |
								 GPExecuteToolFlags.RefreshProjectItems;

// Execute the TopoToRaster tool
IGPResult gpResult = await Geoprocessing.ExecuteToolAsync("SpatialAnalyst.TopoToRaster", parameters, null, null, null, executeFlags);

// Show the messages
Geoprocessing.ShowMessageBox(gpResult.Messages, "TopoToRaster Messages", gpResult.IsFailed ? GPMessageBoxStyle.Error : GPMessageBoxStyle.Default);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Mar 2025 06:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1598401#M12786</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2025-03-24T06:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use ExecuteToolAsync to run TopoToRaster</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1598507#M12789</link>
      <description>&lt;P&gt;Thank you for the reply. by any chance you know what should be passed as the input feature. The documentation said it needs to specify the elevation field. In my case it will be the&amp;nbsp;&lt;SPAN&gt;TopoPointElevation&amp;nbsp;but Im not sure how to create that in C#.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;below is the explanation of the input feature :&lt;/P&gt;&lt;P&gt;Each feature input can have a field specified that contains the z-values and one of six types specified.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Feature layer&lt;/SPAN&gt;—The input feature dataset.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Field&lt;/SPAN&gt;—The name of the field that stores the attributes, where appropriate.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;—The type of input feature dataset.&lt;BR /&gt;&lt;BR /&gt;and below is the python example it provides:&lt;BR /&gt;&lt;SPAN&gt;outTTR = TopoToRaster([TopoPointElevation([[&lt;/SPAN&gt;&lt;SPAN class=""&gt;'spots'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;'spot_meter'&lt;/SPAN&gt;&lt;SPAN&gt;]]), TopoContour([[&lt;/SPAN&gt;&lt;SPAN class=""&gt;'contours'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;'spot_meter'&lt;/SPAN&gt;&lt;SPAN&gt;]]), TopoCliff([&lt;/SPAN&gt;&lt;SPAN class=""&gt;'cliff'&lt;/SPAN&gt;&lt;SPAN&gt;])], &lt;/SPAN&gt;&lt;SPAN class=""&gt;60&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"#"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"NO_ENFORCE"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/tool-reference/spatial-analyst/topo-to-raster.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/3.3/tool-reference/spatial-analyst/topo-to-raster.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 14:11:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1598507#M12789</guid>
      <dc:creator>sz66666</dc:creator>
      <dc:date>2025-03-24T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use ExecuteToolAsync to run TopoToRaster</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1599442#M12798</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 14:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1599442#M12798</guid>
      <dc:creator>sz66666</dc:creator>
      <dc:date>2025-03-26T14:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use ExecuteToolAsync to run TopoToRaster</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1599463#M12799</link>
      <description>&lt;P&gt;I attached a sample Button OnClick method that includes all parameters and environment settings to call the 'Topo to Raster' GP Tool.&amp;nbsp; To figure out in what form to pass in the parameter values I usually use the following approach:&lt;/P&gt;&lt;P&gt;- I run the GP Tool manually and define all needed parameters&lt;/P&gt;&lt;P&gt;- After the GP Tool completes, I click the "Open History" link to open the Geoprocessing History tab&lt;/P&gt;&lt;P&gt;- I right click on the GP Tool and select the "Copy Python Command" from the context menu.&lt;/P&gt;&lt;P&gt;- I then paste the 'Python Command' syntax into a text editor to see the parameter value formats.&lt;/P&gt;&lt;P&gt;- I use the python command's parameter format to fill in the parameters for the ExecuteToolAsync call&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 14:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/use-executetoolasync-to-run-topotoraster/m-p/1599463#M12799</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2025-03-26T14:54:08Z</dc:date>
    </item>
  </channel>
</rss>

