<?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: python script for Viewshed analysis in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/python-script-for-viewshed-analysis/m-p/198506#M1242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you indicate what version of the software you are using?&amp;nbsp; There is a &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDQxNzE5"&gt;bug report&lt;/A&gt;&lt;SPAN&gt; for version 9.3.1, but it is indicated that it is fixed in version 10.&amp;nbsp; If you are using ArcGIS 10, please create a support incident to report this behavior.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2011 12:13:55 GMT</pubDate>
    <dc:creator>JeffreySwain</dc:creator>
    <dc:date>2011-10-10T12:13:55Z</dc:date>
    <item>
      <title>python script for Viewshed analysis</title>
      <link>https://community.esri.com/t5/3d-questions/python-script-for-viewshed-analysis/m-p/198505#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written a wee python script to carry out viewshed analyses for each point of a point feature class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the point feature attribute table, I have added OFFSETA, OFFSETB, RADIUS1 and RADIUS2 as variables for the viewshed analysis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it doesn't pick up those variables but uses the defaults (RADIUS1=0 etc). If I generate the viewshed manually it works, but not with the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As the point feature class contains hundreds of points, I certainly don't want to generate each viewshed manually! Any help is very much appreciated!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanja&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S: this is the little script, that works fine otherwise&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Check out any necessary licenses&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("3D")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dhm = "C:\\dhm_combined"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Standorte = "C:\\Standorte_3_test.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cur = arcpy.SearchCursor(Standorte)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for row in cur:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; feat = row.Shape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print row.Nr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; turbine = str(row.Nr)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vs = "D:\\arctemp\\vs_manuell_"+turbine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Viewshed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Viewshed_3d(dhm, feat, vs, "1", "FLAT_EARTH", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del cur, row&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 10:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/python-script-for-viewshed-analysis/m-p/198505#M1241</guid>
      <dc:creator>TanjaHumar</dc:creator>
      <dc:date>2011-09-28T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: python script for Viewshed analysis</title>
      <link>https://community.esri.com/t5/3d-questions/python-script-for-viewshed-analysis/m-p/198506#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you indicate what version of the software you are using?&amp;nbsp; There is a &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDQxNzE5"&gt;bug report&lt;/A&gt;&lt;SPAN&gt; for version 9.3.1, but it is indicated that it is fixed in version 10.&amp;nbsp; If you are using ArcGIS 10, please create a support incident to report this behavior.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 12:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/python-script-for-viewshed-analysis/m-p/198506#M1242</guid>
      <dc:creator>JeffreySwain</dc:creator>
      <dc:date>2011-10-10T12:13:55Z</dc:date>
    </item>
  </channel>
</rss>

