<?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 Batch buffer with different sizes within a specified area. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/batch-buffer-with-different-sizes-within-a/m-p/614972#M47985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="python" name="code"&gt;def ResZones(Layer, Buffer): &amp;nbsp;&amp;nbsp;&amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(Layer, "S:/Support Services/LGA Maps/buffer.shp" "Buffer", "FULL", "ROUND", "LIST", "Distance") &amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages(0) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(arcpy.GetMessages(0)) if __name__ == '__main__': &amp;nbsp;&amp;nbsp;&amp;nbsp; ResZones(T330, "35 meters")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to define a new function to do a batch buffer but with different buffer size for each feature class.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, line one with a&amp;nbsp; buffer of 35m and line 2 with a buffer of 10m and line 3 with a buffer of 6m.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After all the buffers are created, I would like to combine them into one.&lt;/P&gt;&lt;P&gt;I started with the above but already failing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2014 07:46:46 GMT</pubDate>
    <dc:creator>MittRamgobin</dc:creator>
    <dc:date>2014-11-05T07:46:46Z</dc:date>
    <item>
      <title>Batch buffer with different sizes within a specified area.</title>
      <link>https://community.esri.com/t5/python-questions/batch-buffer-with-different-sizes-within-a/m-p/614972#M47985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="python" name="code"&gt;def ResZones(Layer, Buffer): &amp;nbsp;&amp;nbsp;&amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(Layer, "S:/Support Services/LGA Maps/buffer.shp" "Buffer", "FULL", "ROUND", "LIST", "Distance") &amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages(0) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(arcpy.GetMessages(0)) if __name__ == '__main__': &amp;nbsp;&amp;nbsp;&amp;nbsp; ResZones(T330, "35 meters")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to define a new function to do a batch buffer but with different buffer size for each feature class.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, line one with a&amp;nbsp; buffer of 35m and line 2 with a buffer of 10m and line 3 with a buffer of 6m.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After all the buffers are created, I would like to combine them into one.&lt;/P&gt;&lt;P&gt;I started with the above but already failing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 07:46:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-buffer-with-different-sizes-within-a/m-p/614972#M47985</guid>
      <dc:creator>MittRamgobin</dc:creator>
      <dc:date>2014-11-05T07:46:46Z</dc:date>
    </item>
  </channel>
</rss>

