<?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: Viewshed 2 geoprocessing package in Runtime SDK in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151643#M705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Is there any chance you could show us your code?&lt;/P&gt;&lt;P&gt;Is there a reason why you still need to use LocalServer 100.1 and not 100.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 16:41:11 GMT</pubDate>
    <dc:creator>EricBader</dc:creator>
    <dc:date>2018-02-27T16:41:11Z</dc:date>
    <item>
      <title>Viewshed 2 geoprocessing package in Runtime SDK</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151642#M704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm&amp;nbsp;having trouble getting good results from Viewshed 2 as a GeoprocessingTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System info:&lt;/P&gt;&lt;P&gt;-- Runtime SDK version 100.2.0 for Qt, C++ API, Windows.&lt;/P&gt;&lt;P&gt;-- Runtime Local Server for Qt 100.1.0 (not 100.2.0, if that matters)&lt;/P&gt;&lt;P&gt;-- NVIDIA Quadro K4200&amp;nbsp;GPU (CUDA compute capability 3.0) with latest drivers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inputs:&lt;/P&gt;&lt;P&gt;-- Observers are Point features&lt;/P&gt;&lt;P&gt;-- Elevation source is a SRTM .hgt file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I used the Viewshed analysis class with good results. I was able to see a reasonable looking viewshed using a&amp;nbsp;LocationViewshed object. I added the SRTM DEM as an elevation source to my Scene and it worked great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm trying to do the viewshed as a GeoprocessingTask using the same observers and same elevation source. The GeoprocessingJob object accepts my input observer features and other parameters, and successfully returns an output raster, but the result is not what I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The observer is located a few meters above the DEM (observer offset ~5&amp;nbsp;meters) with a horizontal FOV of approximately 15 degrees and a vertical FOV of approximately 60 degrees. The inner and outer radii are set to 5 meters and 16 km respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screenshot shows the observer point (the yellow square), with the Viewshed 2 output raster overlaid onto the Scene. The viewshed is the black region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the left, using the ALL_SIGHTLINES mode,&amp;nbsp;the viewshed shape&amp;nbsp;doesn't seem to be influenced by the terrain; it only appears to be limited by the azimuth and radius ranges that I set. Considering that the observer is at sea level viewing a mountain range of around 1000 meters elevation, the viewshed should not extend behind the mountains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the right, using the PERIMETER_SIGHTLINES mode, the viewshed appears to be limited by terrain features. The bottom picture shows that more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why might I be having trouble with the ALL_SIGHTLINES mode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 23:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151642#M704</guid>
      <dc:creator>jkDfGrt3K8Dw</dc:creator>
      <dc:date>2018-02-21T23:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Viewshed 2 geoprocessing package in Runtime SDK</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151643#M705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Is there any chance you could show us your code?&lt;/P&gt;&lt;P&gt;Is there a reason why you still need to use LocalServer 100.1 and not 100.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151643#M705</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2018-02-27T16:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Viewshed 2 geoprocessing package in Runtime SDK</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151644#M706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I'm putting together a minimal example and will get it to you shortly--thanks for offering to take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There wasn't any reason why&amp;nbsp;I had previously used Local Server 100.1, but I tried 100.2 just yesterday and had the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151644#M706</guid>
      <dc:creator>jkDfGrt3K8Dw</dc:creator>
      <dc:date>2018-02-28T19:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Viewshed 2 geoprocessing package in Runtime SDK</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151645#M707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a "minimal" reproducible example. I was hoping to create the observer feature table in memory using a FeatureCollectionTable but couldn't get that to work, so it instead pulls from a .geodatabase with a single table containing one feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you switch the&amp;nbsp;"analysis_method" GeoprocessingString from ALL_SIGHTLINES to PERIMETER_SIGHTLINES, you should be able to get the results I described earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking into this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 22:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151645#M707</guid>
      <dc:creator>jkDfGrt3K8Dw</dc:creator>
      <dc:date>2018-02-28T22:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Viewshed 2 geoprocessing package in Runtime SDK</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151646#M708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get results by forcing Viewshed 2 to compute the viewshed using the CPU. A temporary rough fix is to set environment variable&amp;nbsp;&lt;A href="http://acceleware.com/blog/cudavisibledevices-masking-gpus"&gt;CUDA_VISIBLE_DEVICES&lt;/A&gt;&amp;nbsp;to a value that excludes CUDA devices, e.g., CUDA_VISIBLE_DEVICES="". However, this disables CUDA processing for the duration of the program execution, which has obvious performance implications both for the viewshed and for other operations that use CUDA. If there is a way to disable support on a per-service/task/job basis, that would be better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 17:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151646#M708</guid>
      <dc:creator>jkDfGrt3K8Dw</dc:creator>
      <dc:date>2018-03-09T17:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Viewshed 2 geoprocessing package in Runtime SDK</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151647#M709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good find. We need to fix this. Thanks Martin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2018 03:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151647#M709</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2018-03-10T03:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Viewshed 2 geoprocessing package in Runtime SDK</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151648#M710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/303680"&gt;Martin Jaszewski&lt;/A&gt;‌, can you try setting&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;CUDA_VISIBLE_DEVICES to either 0 or 1 and see if that helps the issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;There's a bit more information here related to configuring the GPU&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/gpu-processing-with-spatial-analyst.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/gpu-processing-with-spatial-analyst.htm"&gt;GPU processing with Spatial Analyst—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; (see GPU configuration).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Please let us know if that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 22:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/viewshed-2-geoprocessing-package-in-runtime-sdk/m-p/151648#M710</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2018-03-27T22:02:58Z</dc:date>
    </item>
  </channel>
</rss>

