<?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: Looking for a sample showing the new Spatial Analysis Service tasks in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354889#M32874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I can't help here - I ended up using an alternative approach so I never explored it any further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 19:16:19 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2014-03-04T19:16:19Z</dc:date>
    <item>
      <title>Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354885#M32870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) I'm looking for a sample showing how to use the new &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/rest/analysis/"&gt;Spatial Analysis Service&lt;/A&gt;&lt;SPAN&gt; tasks, eg &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/rest/analysis/api-reference/summarize-within.htm"&gt;summarizeWithin&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unlike other tasks these are not listed on the page at&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi"&gt;https://developers.arcgis.com/en/javascript/jsapi&lt;/A&gt;&lt;SPAN&gt; and the help page doesn't list methods (eg &lt;/SPAN&gt;&lt;STRONG&gt;summarizeWithin.execute&lt;/STRONG&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do we need to call this task manually using esri.request using the URL &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: monospace;"&gt;http&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: monospace;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: monospace;"&gt;//analysis.arcgis.com/arcgis/rest/services/tasks/GPServer/SummarizeWithin/submitJob&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(There is an example using the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/analysis_summarizenearby.html"&gt;summarize nearby widget&lt;/A&gt;&lt;SPAN&gt;, but I'd prefer to use the task directly)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Does the spatial analysis service only work on ArcGIS.com layers? The documentation says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color: #4D4D4D; font-family: Lucida Grande;"&gt;The Spatial Analysis service contains a number of tasks that allow you to perform common spatial analyses &lt;STRONG&gt;on your hosted data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but also:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color: #4D4D4D; font-family: Lucida Grande;"&gt;These tools allow end-users to easily perform analysis against layers hosted in Online &lt;STRONG&gt;as well as other layers they have access to&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 04:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354885#M32870</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-11-15T04:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354886#M32871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The summarize within widget is here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/summarizewithin-amd.html"&gt;https://developers.arcgis.com/en/javascript/jsapi/summarizewithin-amd.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial Analysis service rest api is documented here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/rest/analysis/"&gt;https://developers.arcgis.com/en/rest/analysis/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It requires an ArcGIS organizational or developer subscription.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The results of analysis can be stored as new hosted layers in your organization subscription or delivered by value (as a feature collection).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When working with the rest api directly you will want to use the arcgis portal class in the api.&amp;nbsp; Your user will need to sign-in.&amp;nbsp; Also note that there are several analysis servers depending on where your hosted data is stored.&amp;nbsp; This can be identified by the helperServices property of the portal after a user has signed in (this is an area of the doc that needs work.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 23:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354886#M32871</guid>
      <dc:creator>JeremyBartley</dc:creator>
      <dc:date>2013-11-15T23:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354887#M32872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeremy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some additional samples showing how to interact with the REST API directly would be good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The results of analysis can be stored as new hosted layers in your organization subscription&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sounds promising for what I'm trying to do. Is it an option to write the output to an existing AGOL layer, ie to edit and existing layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation suggests not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color: #4D4D4D; font-family: Lucida Grande;"&gt;If provided, the task will create a feature service of the results&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you open an enhancement request to allow the results to be written to an existing (editable) layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 02:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354887#M32872</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-11-16T02:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354888#M32873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve/Jeremy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you successfully use a spatial analysis service using the portal class as suggested? Got any code you could share? I'm trying to do the same in a hurry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 18:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354888#M32873</guid>
      <dc:creator>deleted-user-VeZur_n9o0OZ</dc:creator>
      <dc:date>2014-03-04T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354889#M32874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I can't help here - I ended up using an alternative approach so I never explored it any further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:16:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354889#M32874</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2014-03-04T19:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354890#M32875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm up against a time constraint so I'm open to alternatives. Care to share @geo_james? I'm tech agnostic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to start a new thread for my problem. I'm trying to submit the FindNearest task as a geoprocesser task and it's telling me my input params are missing. esri could really do with some code examples an example here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/rest/analysis/api-reference/find-nearest.htm"&gt;https://developers.arcgis.com/rest/analysis/api-reference/find-nearest.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354890#M32875</guid>
      <dc:creator>deleted-user-VeZur_n9o0OZ</dc:creator>
      <dc:date>2014-03-04T19:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354891#M32876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm up against a time constraint so I'm open to alternatives. Care to share @geo_james? I'm tech agnostic.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By alternative, I mean a totally different approach, where I'm bringing all the datasets in-house for pre-processing rather than trying to do it "live" using ArcGIS Online. So I'm still not much help, sorry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354891#M32876</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2014-03-04T19:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a sample showing the new Spatial Analysis Service tasks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354892#M32877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if anyone could actaully tell us what tools and/or scripts are used to generate the Summarize Within or Summarize Nearby GP services that would be very helpful.&amp;nbsp; Unfortunately, there does not seem to be any help in this regard in either the REST or JavaScript APIs.&amp;nbsp; As an analyst, I can certainly produce summary statistics on the desktop using a variety of methods and tools.&amp;nbsp; But that in no way helps us to construct the same GP service in our own Advanced-licenced Server environment which would allow us to create our own jobs.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 17:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/looking-for-a-sample-showing-the-new-spatial/m-p/354892#M32877</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2014-07-25T17:09:59Z</dc:date>
    </item>
  </channel>
</rss>

