<?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: How can I pass a polygon to my Geoprocessing Service? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-i-pass-a-polygon-to-my-geoprocessing/m-p/411083#M15926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't tried this using silverlight but I think all the ESRI web APIs would need to pass a GPFeatureRecordSetLayer object to the server for geometry objects - more information is availabe here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_geoprocessing_tasks_in_web_applications/0154000004v8000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_geoprocessing_tasks_in_web_applications/0154000004v8000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, check out the message in a bottle sample at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The message in a bottle sample uses a point but you should be able to substitute this with your polygon or graphic input:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;List&amp;lt;GPParameter&amp;gt; parameters = new List&amp;lt;GPParameter&amp;gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters.Add(new GPFeatureRecordSetLayer("Input_Polygon", poly));
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...any other tool parameters...
&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters.Add(new GPDouble("Other_Input", Convert.ToDouble(DaysTextBox.Text)));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Owen&lt;/SPAN&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.spatialxp.com.au" target="_blank"&gt;www.spatialxp.com.au&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:40:07 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2021-12-11T18:40:07Z</dc:date>
    <item>
      <title>How can I pass a polygon to my Geoprocessing Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-i-pass-a-polygon-to-my-geoprocessing/m-p/411082#M15925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am able to successfully create geoprocessing tools with string arguments and call them from my Silverlight applications. But I am unable to pass a graphic or a polygon as an input parameter. Can you point me in the right direction?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 18:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-i-pass-a-polygon-to-my-geoprocessing/m-p/411082#M15925</guid>
      <dc:creator>CraigPerreault</dc:creator>
      <dc:date>2014-06-16T18:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass a polygon to my Geoprocessing Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-i-pass-a-polygon-to-my-geoprocessing/m-p/411083#M15926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't tried this using silverlight but I think all the ESRI web APIs would need to pass a GPFeatureRecordSetLayer object to the server for geometry objects - more information is availabe here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_geoprocessing_tasks_in_web_applications/0154000004v8000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_geoprocessing_tasks_in_web_applications/0154000004v8000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, check out the message in a bottle sample at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/silverlight-api/concepts/#/Geoprocessing_task/01660000000n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The message in a bottle sample uses a point but you should be able to substitute this with your polygon or graphic input:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;List&amp;lt;GPParameter&amp;gt; parameters = new List&amp;lt;GPParameter&amp;gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters.Add(new GPFeatureRecordSetLayer("Input_Polygon", poly));
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...any other tool parameters...
&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters.Add(new GPDouble("Other_Input", Convert.ToDouble(DaysTextBox.Text)));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Owen&lt;/SPAN&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.spatialxp.com.au" target="_blank"&gt;www.spatialxp.com.au&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-i-pass-a-polygon-to-my-geoprocessing/m-p/411083#M15926</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2021-12-11T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass a polygon to my Geoprocessing Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-i-pass-a-polygon-to-my-geoprocessing/m-p/411084#M15927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should have asked �??How can I create a geoprocessing service that receives the geometry of polygon�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to pass graphics to &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com"&gt;http://sampleserver1.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;, like the message in a bottle example,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but unable to create a new service that accepts polygon geometry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-i-pass-a-polygon-to-my-geoprocessing/m-p/411084#M15927</guid>
      <dc:creator>CraigPerreault</dc:creator>
      <dc:date>2014-06-18T19:23:04Z</dc:date>
    </item>
  </channel>
</rss>

