<?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 Query elevation data within python script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/query-elevation-data-within-python-script/m-p/511758#M40225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, I'm new to ArcGis and this community.&amp;nbsp; Hope this isn't a dumb question.&amp;nbsp; In a python script I'm loading a polygon shapefile and creating a buffer around each polygon, writing this to a new file.&amp;nbsp; This all works great.&amp;nbsp; But the size of the buffer needs to depend on the ground elevation of the polygon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my question:&amp;nbsp; What approach should I take to get the elevation of a polygon?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the SummarizeElevation tool, but only works on 1000 polys at a time, and it's slow.&amp;nbsp; The&amp;nbsp;AddSurfaceInformation_3d is just throwing a 999999 error for me (and yes I tried repair).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note, the elevation doesn't need to be super accurate.&amp;nbsp; Sampling the first point on the polygon would be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Walter&amp;nbsp;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2019 15:04:57 GMT</pubDate>
    <dc:creator>WalterBoyd</dc:creator>
    <dc:date>2019-05-30T15:04:57Z</dc:date>
    <item>
      <title>Query elevation data within python script</title>
      <link>https://community.esri.com/t5/python-questions/query-elevation-data-within-python-script/m-p/511758#M40225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, I'm new to ArcGis and this community.&amp;nbsp; Hope this isn't a dumb question.&amp;nbsp; In a python script I'm loading a polygon shapefile and creating a buffer around each polygon, writing this to a new file.&amp;nbsp; This all works great.&amp;nbsp; But the size of the buffer needs to depend on the ground elevation of the polygon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my question:&amp;nbsp; What approach should I take to get the elevation of a polygon?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the SummarizeElevation tool, but only works on 1000 polys at a time, and it's slow.&amp;nbsp; The&amp;nbsp;AddSurfaceInformation_3d is just throwing a 999999 error for me (and yes I tried repair).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note, the elevation doesn't need to be super accurate.&amp;nbsp; Sampling the first point on the polygon would be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Walter&amp;nbsp;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 15:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/query-elevation-data-within-python-script/m-p/511758#M40225</guid>
      <dc:creator>WalterBoyd</dc:creator>
      <dc:date>2019-05-30T15:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query elevation data within python script</title>
      <link>https://community.esri.com/t5/python-questions/query-elevation-data-within-python-script/m-p/511759#M40226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Sampling the first point on the polygon would be sufficient&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but&amp;nbsp;you also say it does not have to be super accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have thought getting the centroid of the polygon was the easiest option? That you can do with the&amp;nbsp;&lt;EM&gt;Feature to Point&lt;/EM&gt; tool then run &lt;EM&gt;Extract Values to Points&lt;/EM&gt; tool. Finally join back the elevation to you polygon layer add a new field and compute your buffer distance into that field and then buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2019 11:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/query-elevation-data-within-python-script/m-p/511759#M40226</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-06-06T11:10:39Z</dc:date>
    </item>
  </channel>
</rss>

