<?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 ESRI's Viewshed GP task: how is it done? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-s-viewshed-gp-task-how-is-it-done/m-p/99389#M9094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are in a need of generating the VS polygons and have found this example&lt;BR /&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/geoprocessing-viewshed/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/geoprocessing-viewshed/index.html"&gt;Geoprocessing - viewshed analysis | ArcGIS API for JavaScript 4.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is great, though we are struggling to replicate the server side geoprocessing tool.&lt;/P&gt;&lt;P&gt;If we use out of the box &lt;STRONG&gt;viewshed 2&amp;nbsp;&lt;/STRONG&gt;task, (as viewshed doesn't accept the distance), it takes nearly 3minutes (probably busy generating the TIF, but also, the grid is much more detailed (0.5m) for a point and 1km distance, whereas in the sample, it takes only 3secs.&lt;/P&gt;&lt;P&gt;Additionally, I can see that the model is returning the&amp;nbsp;GPFeatureRecordSetLayer, which json, where as the&amp;nbsp;&lt;STRONG&gt;viewshed 2&amp;nbsp;&lt;/STRONG&gt;task generates only raster. Is this raster additionally converted to features?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any insight on how we could improve on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2018 02:49:21 GMT</pubDate>
    <dc:creator>MichalGasparovic</dc:creator>
    <dc:date>2018-07-27T02:49:21Z</dc:date>
    <item>
      <title>ESRI's Viewshed GP task: how is it done?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-s-viewshed-gp-task-how-is-it-done/m-p/99389#M9094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are in a need of generating the VS polygons and have found this example&lt;BR /&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/geoprocessing-viewshed/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/geoprocessing-viewshed/index.html"&gt;Geoprocessing - viewshed analysis | ArcGIS API for JavaScript 4.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is great, though we are struggling to replicate the server side geoprocessing tool.&lt;/P&gt;&lt;P&gt;If we use out of the box &lt;STRONG&gt;viewshed 2&amp;nbsp;&lt;/STRONG&gt;task, (as viewshed doesn't accept the distance), it takes nearly 3minutes (probably busy generating the TIF, but also, the grid is much more detailed (0.5m) for a point and 1km distance, whereas in the sample, it takes only 3secs.&lt;/P&gt;&lt;P&gt;Additionally, I can see that the model is returning the&amp;nbsp;GPFeatureRecordSetLayer, which json, where as the&amp;nbsp;&lt;STRONG&gt;viewshed 2&amp;nbsp;&lt;/STRONG&gt;task generates only raster. Is this raster additionally converted to features?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any insight on how we could improve on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 02:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-s-viewshed-gp-task-how-is-it-done/m-p/99389#M9094</guid>
      <dc:creator>MichalGasparovic</dc:creator>
      <dc:date>2018-07-27T02:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI's Viewshed GP task: how is it done?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-s-viewshed-gp-task-how-is-it-done/m-p/1056109#M73012</link>
      <description>&lt;P&gt;Dear Michal,&lt;/P&gt;&lt;P&gt;I am also looking for the Viewshed analysis solution using ArcGIS Javascript API. For your problem you can convert your raster Tiff output to vector polygon using Raster to Polygon toolbox.&lt;/P&gt;&lt;P&gt;Following steps/tools, we have followed&lt;/P&gt;&lt;P&gt;We have published Viewshed2 as a GP service and consumed it in our portal.&lt;/P&gt;&lt;P&gt;Inputs:&lt;BR /&gt;Observer feature&lt;BR /&gt;In raster - presently we have hardcoded with existing DSM (do you know how to pass this as a parameter)&lt;BR /&gt;Observer elevation&lt;BR /&gt;Inner radius&lt;BR /&gt;Outer radius&lt;BR /&gt;Horizontal start angle&lt;BR /&gt;Horizontal end angle&lt;BR /&gt;Vertical lower angle&lt;BR /&gt;Vertical upper angle&lt;/P&gt;&lt;P&gt;Tools used:&lt;BR /&gt;Viewshed2&lt;BR /&gt;Buffer&lt;BR /&gt;Add Field&lt;BR /&gt;Raster to Polygon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;S.Srinivasa Rao,&lt;/P&gt;&lt;P&gt;Ph: 9322251303.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 04:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-s-viewshed-gp-task-how-is-it-done/m-p/1056109#M73012</guid>
      <dc:creator>SrinivasaRao</dc:creator>
      <dc:date>2021-05-10T04:13:41Z</dc:date>
    </item>
  </channel>
</rss>

