<?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 Buffer Analysis in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137869#M10769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create multiple buffer rings of 1 mile and 2 mile for a polygon. I tried the MulipleRingBuffer Analysis but it take about 2 minutes to do 2 buffer rings. so i am trying the buffer analysis. I have the following script, it creates the 1 mile and the 2 mile feature classes but it's on the outline of the subject polygon . I do not get an error but some how i am not correctly getting what i am after, any help would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import arcpy, os

mxd = arcpy.mapping.MapDocument("CURRENT")
lyr = arcpy.mapping.ListLayers(mxd, "SUBJECT_PROPERTY")[0]
#lyrpath = lyr.workspacePath
arcpy.env.workspace = os.path.dirname(mxd.filePath)
wp = os.path.dirname(mxd.filePath)

try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; SP = "SUBJECT_PROPERTY" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(wp, "SHAPEFILE_WORKSPACE", SP, True )
except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass

if arcpy.ListFields(SP, "BUFF_DIST"):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Field exists"&amp;nbsp; 
else:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management("SUBJECT_PROPERTY","BUFF_DIST","TEXT",10)

arcpy.RefreshActiveView()
arcpy.RefreshTOC()

distances = [1, 2]
for distance in distances:
&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile = "wp%s" % distance&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(SP, outfile, distance, "OUTSIDE_ONLY", "ROUND", "LIST", "BUFF_DIST")
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:38:58 GMT</pubDate>
    <dc:creator>CCWeedcontrol</dc:creator>
    <dc:date>2021-12-11T07:38:58Z</dc:date>
    <item>
      <title>Buffer Analysis</title>
      <link>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137869#M10769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create multiple buffer rings of 1 mile and 2 mile for a polygon. I tried the MulipleRingBuffer Analysis but it take about 2 minutes to do 2 buffer rings. so i am trying the buffer analysis. I have the following script, it creates the 1 mile and the 2 mile feature classes but it's on the outline of the subject polygon . I do not get an error but some how i am not correctly getting what i am after, any help would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import arcpy, os

mxd = arcpy.mapping.MapDocument("CURRENT")
lyr = arcpy.mapping.ListLayers(mxd, "SUBJECT_PROPERTY")[0]
#lyrpath = lyr.workspacePath
arcpy.env.workspace = os.path.dirname(mxd.filePath)
wp = os.path.dirname(mxd.filePath)

try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; SP = "SUBJECT_PROPERTY" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(wp, "SHAPEFILE_WORKSPACE", SP, True )
except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass

if arcpy.ListFields(SP, "BUFF_DIST"):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Field exists"&amp;nbsp; 
else:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management("SUBJECT_PROPERTY","BUFF_DIST","TEXT",10)

arcpy.RefreshActiveView()
arcpy.RefreshTOC()

distances = [1, 2]
for distance in distances:
&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile = "wp%s" % distance&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(SP, outfile, distance, "OUTSIDE_ONLY", "ROUND", "LIST", "BUFF_DIST")
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137869#M10769</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-11T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Analysis</title>
      <link>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137870#M10770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get the&amp;nbsp; features to be created by adding "Miles" to the following line.&lt;/P&gt;&lt;P&gt;distances = ["1 Mile", "2 Miles"]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why isn't the BUFF_DIST being populated with 1 mile and 2 mile for each new feature class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 15:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137870#M10770</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2016-09-23T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Analysis</title>
      <link>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137871#M10771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well... if your map is a projected map with feet or meters as coordinates... then you just buffered by 1 and 2 feet... basically making what looks like a fat line... The &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/analysis-toolbox/buffer.htm"&gt;help topic on Buffer_Analysis &lt;/A&gt;has some tips&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 16:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137871#M10771</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-09-23T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Analysis</title>
      <link>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137872#M10772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe it is a numeric field and you have chosen the text representation of the distance... why not check the field type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 17:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/buffer-analysis/m-p/137872#M10772</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-09-23T17:04:44Z</dc:date>
    </item>
  </channel>
</rss>

