<?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: buffer within polygon in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461631#M1018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander, that will work but I have about 110 different pastures that I need to run it for.&amp;nbsp; Any way to automate it so I don't have to do the model 110 different times?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2015 21:12:25 GMT</pubDate>
    <dc:creator>AndrewBivins</dc:creator>
    <dc:date>2015-01-07T21:12:25Z</dc:date>
    <item>
      <title>buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461629#M1016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a buffer of water locations (point.shp) within a pasture (polygon.shp).&amp;nbsp; When i run a multiring buffer of the water locations the rings extend beyond the pasture fence lines.&amp;nbsp; I need to rings to stop at the fence lines.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see from my map that the water locations need to stay within the pastures but as of now the rings go beyond the pasture lines.&amp;nbsp; I was able to clip the buffer by the outside of the polygon file so the rings don't extend beyond the outside perimeter.&amp;nbsp; I need it to do this within the internal fence lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how I can do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 16:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461629#M1016</guid>
      <dc:creator>AndrewBivins</dc:creator>
      <dc:date>2015-01-07T16:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461630#M1017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will probably have to script this or créate a model:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Loop through each fence polygon&lt;UL&gt;&lt;LI&gt;Select the water points inside the current polygon&lt;/LI&gt;&lt;LI&gt;Do the multiring buffer&lt;/LI&gt;&lt;LI&gt;Clip with the current fence polygon&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 18:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461630#M1017</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-07T18:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461631#M1018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander, that will work but I have about 110 different pastures that I need to run it for.&amp;nbsp; Any way to automate it so I don't have to do the model 110 different times?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 21:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461631#M1018</guid>
      <dc:creator>AndrewBivins</dc:creator>
      <dc:date>2015-01-07T21:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461632#M1019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have some sample data that follows the structure you want to use, I can see if I can come up with a script to process the 110 pastures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 21:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461632#M1019</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-07T21:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461633#M1020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this more or less what you are trying to get?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="BufferPasture.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/48286_BufferPasture.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 04:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461633#M1020</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-08T04:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461634#M1021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is exactly what I am trying to do.  How did you manipulate my data.  I only sent a pdf correct?  Bigger question is how did you get the buffers to stay within the borders of the individual polygons?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461634#M1021</guid>
      <dc:creator>AndrewBivins</dc:creator>
      <dc:date>2015-01-08T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461635#M1022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I converted the PDF to raster, changed the raster, did some vectorization and made some edits (added some additional water points).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The unpolished code I used I included below.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It creates a list of OID's of the fence areas&lt;/LI&gt;&lt;LI&gt;Loops through the list of OID´s&lt;UL&gt;&lt;LI&gt;creates a featurelayer with only the current fence area based on OID&lt;/LI&gt;&lt;LI&gt;creates a featurelayer with only the water points in that area&lt;/LI&gt;&lt;LI&gt;creates the multi ring buffer on those points&lt;/LI&gt;&lt;LI&gt;clips the resulting buffers with the area&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os

fc_pnt = r"C:\Forum\Pasture\test.gdb\waterpoints"
fc_pol = r"C:\Forum\Pasture\test.gdb\FenceAreas"

ws = r"C:\Forum\Pasture\test.gdb"
arcpy.env.overwriteOutput = True
dists="25000;50000;75000;100000;125000;150000;175000;200000"

fld_oid = arcpy.Describe(fc_pol).OIDFieldName
lst_OIDs = [r[0] for r in arcpy.da.SearchCursor(fc_pol, "OID@")]

for oid in lst_OIDs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; where = "{0} = {1}".format(arcpy.AddFieldDelimiters(fc_pol, fld_oid),oid)

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(fc_pol, "flpol", where_clause=where)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(fc_pnt, "flpnt")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("flpnt", 'intersect', "flpol")

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_buf = os.path.join(ws, "buf_{0}".format(oid))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MultipleRingBuffer_analysis(Input_Features="flpnt",Distances=dists,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output_Feature_class=fc_buf,Buffer_Unit="Default",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field_Name="distance",Dissolve_Option="ALL",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Outside_Polygons_Only="FULL")

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_bufclip = os.path.join(ws, "buf_{0}clip".format(oid))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis(fc_buf,"flpol",fc_bufclip)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # ... also merge the buffer layers into a single featureclass&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461635#M1022</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T20:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461636#M1023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to send you a PM.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/461636#M1023</guid>
      <dc:creator>AndrewBivins</dc:creator>
      <dc:date>2015-01-08T15:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: buffer within polygon</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/1295232#M1868</link>
      <description>&lt;P&gt;Hi Xander and Andrew,&lt;/P&gt;&lt;P&gt;Not sure if you could revisit this, as I really appreciate your work here on this issue.&lt;/P&gt;&lt;P&gt;I work with multiple farmer/producers who would love this function available in ArcGIS Online.&lt;/P&gt;&lt;P&gt;With another complexity though, can we restrict the buffer growth with line features rather than polygons?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 00:23:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/buffer-within-polygon/m-p/1295232#M1868</guid>
      <dc:creator>NikHenryOz</dc:creator>
      <dc:date>2023-06-02T00:23:42Z</dc:date>
    </item>
  </channel>
</rss>

