<?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 Oriented buffers in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287195#M9901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Hi there,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;I am using arcview 9.3.1 and I need to create oriented buffers from points in a shapefile. The euclidean direction method almost works, but because it calculates to the nearest point, buffers associated with points within the maximum will be truncated. I need each point to have a complete buffer in a specific direction, regardless of overlap with other points.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Any ideas would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Dave&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Feb 2015 03:58:42 GMT</pubDate>
    <dc:creator>davesacco</dc:creator>
    <dc:date>2015-02-08T03:58:42Z</dc:date>
    <item>
      <title>Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287195#M9901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Hi there,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;I am using arcview 9.3.1 and I need to create oriented buffers from points in a shapefile. The euclidean direction method almost works, but because it calculates to the nearest point, buffers associated with points within the maximum will be truncated. I need each point to have a complete buffer in a specific direction, regardless of overlap with other points.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Any ideas would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Dave&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 03:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287195#M9901</guid>
      <dc:creator>davesacco</dc:creator>
      <dc:date>2015-02-08T03:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287196#M9902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would the table to ellipse tool be of any help?&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000tt000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000tt000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not a picture to show what you are after would help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 20:00:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287196#M9902</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-08T20:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287197#M9903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander, &lt;/P&gt;&lt;P&gt;Thanks for taking the time to help out. I'll try this tool out, but I need a different shape so it may not be the solution. I'll attach an image from the euclidean direction tool that will hopefully make this a bit clearer. Without getting into too much detail, I need to illustrate an area that may be a source for the point data. In the attached image, the transport direction ranges from 45-90 degrees, hence the cone shape (the transport vectors vary throughout the data set). My only issue is the truncation in the raster due to the close points. I.e, they need to overlap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another idea is to somehow generate 2 lines at specified azimuths from the points and then use them to intersect with a buffer around the point. This would allow for the overlap that the raster does not accommodate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty stumped right now, so I really appreciate your input and time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;IMG alt="TillAOIs.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/59676_TillAOIs.jpg" style="width: 620px; height: 802px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 22:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287197#M9903</guid>
      <dc:creator>davesacco</dc:creator>
      <dc:date>2015-02-08T22:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287198#M9904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how you can do this using arcpy and geometry objects:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; radius = 200000 # buffer radius
&amp;gt;&amp;gt;&amp;gt; polys = []
&amp;gt;&amp;gt;&amp;gt; sr = arcpy.Describe("YOUR_POINT_LAYER_NAME_HERE").spatialReference
&amp;gt;&amp;gt;&amp;gt; with arcpy.da.SearchCursor("YOUR_POINT_LAYER_NAME_HERE","SHAPE@",'#',sr) as cursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt1 = row[0].centroid
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt2 = arcpy.Point(row[0].centroid.X - radius*2, row[0].centroid.Y)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt3 = arcpy.Point(row[0].centroid.X - radius*2, row[0].centroid.Y - radius*2)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; triangle = arcpy.Polygon(arcpy.Array([pt1,pt2,pt3]),sr)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buffer = row[0].buffer(radius)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wedge = triangle.intersect(buffer,4)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polys.append(wedge)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;gt;&amp;gt;&amp;gt; arcpy.CopyFeatures_management(polys,'in_memory\wedges')
&amp;lt;Result 'in_memory\\wedges'&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60042" alt="Capture.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/60042_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It helps that all wedges are the same shape, so the triangle shape used to clip (intersect) the buffer is hard-coded. You could fairly easily alter the script to respond to attribute data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for swooping in on your fun, Xander &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287198#M9904</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T13:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287199#M9905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOL, it's actually a very nice a simple way of getting the result... So no harm done, thanks for contributing this solution, &lt;A href="https://community.esri.com/migrated-users/19932"&gt;Darren Wiens&lt;/A&gt;‌ and yes I think this would answer the question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will however start with a more generic solution that allows for setting the start angle, end angle and distance for each sector and will share it later on. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 00:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287199#M9905</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-09T00:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287200#M9906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As promised...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below will create the circle sectors based on the point location and 3 additional columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;one for the start angle&lt;/LI&gt;&lt;LI&gt;one for the end angle&lt;/LI&gt;&lt;LI&gt;and the distance (size)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The angles are expressed arithmetically:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59677" alt="arithmetic.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/59677_arithmetic.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In your case you will want to use start = 180° and end = 225°&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used random points, with random angles and random sizes and this was the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60047" alt="circleSectors.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/60047_circleSectors.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is the code I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#-------------------------------------------------------------------------------
# Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createSectors.py
# Purpose:&amp;nbsp;&amp;nbsp;&amp;nbsp; create circle sectors for points
#
# Author:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Xander
#
# Created:&amp;nbsp;&amp;nbsp;&amp;nbsp; 08-02-2015
#-------------------------------------------------------------------------------
import arcpy

def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_in = r"C:\Forum\CircleSectors\data.gdb\points2"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out = r"C:\Forum\CircleSectors\data.gdb\sectors2"

&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_start = "StartAngle"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_end = "EndAngle"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_dist = "Length"

&amp;nbsp;&amp;nbsp;&amp;nbsp; sr = arcpy.Describe(fc_in).spatialReference
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True

&amp;nbsp;&amp;nbsp;&amp;nbsp; flds = ("SHAPE@", fld_start, fld_end, fld_dist)
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_polygons = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc_in, flds) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt_g = row[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start = row[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end = row[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length = row[3]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; circle = pnt_g.buffer(length)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt = pnt_g.firstPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrPnts = arcpy.Array()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrPnts.add(pnt)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for bearing in range(int(start), int(end) + 1):
&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; arrPnts.add(createPointAtAngleWithBearing(pnt, bearing, length))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = arcpy.Polygon(arrPnts, sr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_polygons.append(polygon)

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(lst_polygons, fc_out)

def createPointAtAngleWithBearing(pnt, angle, distance):
&amp;nbsp;&amp;nbsp;&amp;nbsp; import math
&amp;nbsp;&amp;nbsp;&amp;nbsp; angle = math.radians(angle)
&amp;nbsp;&amp;nbsp;&amp;nbsp; dist_x, dist_y = (distance * math.cos(angle), distance * math.sin(angle))
&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.Point(pnt.X + dist_x, pnt.Y + dist_y)

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287200#M9906</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T13:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287201#M9907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both. You guys are awesome. Seriously. Xander, will Darren see this? not sure how to tag him.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the variable sizes and angles will work perfectly. But.. and this is a big one... I am using Arcview 9.3.1, so as far as I can tell, I can't use arcpy. I will try to get access to a machine with a higher version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with the commands for arcpy, although it appears it's time to learn. With the inputs referenced from the shapefile, you've bang on solved my problem. Don't even want to think about how many hours I could have saved with other problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So.. I'm not sure if this should be under a new thread, but the next step is to determine the percentage of another layer within each of these polygons. Or, more accurately, the types and proportion of each bedrock unit within each polygon. I've just started researching this, but I thought I should ask you guys before I spend too many hours..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish I could thank you guys more for the help. It's much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 02:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287201#M9907</guid>
      <dc:creator>davesacco</dc:creator>
      <dc:date>2015-02-09T02:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287202#M9908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another quick question. Is it possible to have the point ID field recorded as an attribute in the resulting polygon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 07:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287202#M9908</guid>
      <dc:creator>davesacco</dc:creator>
      <dc:date>2015-02-09T07:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287203#M9909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, it will not work on 9.3.1. And since I am making use of the data access module, You will need to have access to ArcGIS 10.1 SP1 or higher. It would be good to upgrade, since each new version of ArcGIS provides some new goodies. The current version is 10.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have access to 9.3.x, so it would be difficult to rewrite it for this version. I could rewrite it for 10.0 and 10.1, but if you are going to upgrade, it's best to pick a higher version. The alternative is to upload your featureclass and I can run it for you and attach the result to this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To learn arcpy (and python) there are a lot of threads where this has been answered and useful links to resources have been provided, like this one: &lt;A href="https://community.esri.com/thread/121021"&gt;Seeking advice on how to go about learning Python&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting info on the bedrock units per polygon, you could use a union and analyze the attributes. If you have any problems with that, you can start a new thread (this will attract the attention of more people and will result in more response).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 11:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287203#M9909</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-09T11:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287204#M9910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is, but will require some rewriting of the code. I will get back on this in a moment...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 12:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287204#M9910</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-09T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287205#M9911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tested this, but it should do the trick (I hope...):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#-------------------------------------------------------------------------------
# Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createSectors2.py
# Purpose:&amp;nbsp;&amp;nbsp;&amp;nbsp; create circle sectors for points
#
# Author:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Xander
#
# Created:&amp;nbsp;&amp;nbsp;&amp;nbsp; 08-02-2015
#-------------------------------------------------------------------------------
import arcpy

def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; import os
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_in = r"C:\Forum\CircleSectors\data.gdb\points2"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out = r"C:\Forum\CircleSectors\data.gdb\sectors2"

&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_start = "StartAngle"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_end = "EndAngle"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_dist = "Length"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_oid = "OIDpoints" # output field with oid of points

&amp;nbsp;&amp;nbsp;&amp;nbsp; sr = arcpy.Describe(fc_in).spatialReference
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True

&amp;nbsp;&amp;nbsp;&amp;nbsp; # create empty output featureclass
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_ws, fc_name = os.path.split(fc_out)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFeatureclass_management(fc_ws, fc_name, "POLYGON", spatial_reference=sr)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # add field to polygon fc to store oid of points
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc_out, fld_oid, "LONG")

&amp;nbsp;&amp;nbsp;&amp;nbsp; # start insert cursor on polygon fc
&amp;nbsp;&amp;nbsp;&amp;nbsp; flds_out = ("SHAPE@", fld_oid)
&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.InsertCursor(fc_out, flds_out) as curs_out:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds = ("SHAPE@", fld_start, fld_end, fld_dist, "OID@")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_polygons = []
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc_in, flds) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:
&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; pnt_g = row[0]
&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; start = row[1]
&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; end = row[2]
&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; length = row[3]
&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; oid = row[4]
&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; circle = pnt_g.buffer(length)
&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; pnt = pnt_g.firstPoint
&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; arrPnts = arcpy.Array()
&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; arrPnts.add(pnt)
&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; for bearing in range(int(start), int(end) + 1):
&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; arrPnts.add(createPointAtAngleWithBearing(pnt, bearing, length))
&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; polygon = arcpy.Polygon(arrPnts, sr)
&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; curs_out.insertRow((polygon, oid, ))

def createPointAtAngleWithBearing(pnt, angle, distance):
&amp;nbsp;&amp;nbsp;&amp;nbsp; import math
&amp;nbsp;&amp;nbsp;&amp;nbsp; angle = math.radians(angle)
&amp;nbsp;&amp;nbsp;&amp;nbsp; dist_x, dist_y = (distance * math.cos(angle), distance * math.sin(angle))
&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.Point(pnt.X + dist_x, pnt.Y + dist_y)

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287205#M9911</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287206#M9912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could upgrade, but it's not in the budget. And, thanks for the offer to process the data. I'll decline as I still need to determine the angles to be used for each point and incorporate a surface roughness factor to scale the length. Once I have all the pieces together I should be able to find a machine that I can use for a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the data extraction, I converted the bedrock data to a raster and then used the tabulate area tool to create a table that I can join back to the polygons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help Xander. I will follow your link on learning python and one day return the favour back to the community! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 20:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287206#M9912</guid>
      <dc:creator>davesacco</dc:creator>
      <dc:date>2015-02-09T20:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287207#M9913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ Thanks so much for this! &amp;nbsp;I'm trying to create 4 90degree buffers around all points in my data frame. &amp;nbsp;I tried using your code and I keep getting this below error. &amp;nbsp;I'm pretty new to Python, do you know how to fix this? &amp;nbsp;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy &lt;BR /&gt;... &lt;BR /&gt;... def main(): &lt;BR /&gt;... fc_in = "C:\Users\A0701216\Documents\ArcGIS\Default.gdb\ALEX"&lt;BR /&gt;... fc_out = "C:\Users\A0701216\Documents\ArcGIS\Default.gdb\ALEX_"&lt;BR /&gt;... &lt;BR /&gt;... fld_start = 180&lt;BR /&gt;... fld_end = 225 &lt;BR /&gt;... fld_dist = 15 &lt;BR /&gt;... &lt;BR /&gt;... sr = arcpy.Describe(fc_in).spatialReference &lt;BR /&gt;... arcpy.env.overwriteOutput = True &lt;BR /&gt;... &lt;BR /&gt;... flds = ("SHAPE@", fld_start, fld_end, fld_dist) &lt;BR /&gt;... lst_polygons = [1] &lt;BR /&gt;... with arcpy.da.SearchCursor(fc_in, flds) as curs: &lt;BR /&gt;... for row in curs: &lt;BR /&gt;... pnt_g = row[0] &lt;BR /&gt;... start = row[1] &lt;BR /&gt;... end = row[2] &lt;BR /&gt;... length = row[3] &lt;BR /&gt;... circle = pnt_g.buffer(length) &lt;BR /&gt;... pnt = pnt_g.firstPoint &lt;BR /&gt;... arrPnts = arcpy.Array() &lt;BR /&gt;... arrPnts.add(pnt) &lt;BR /&gt;... for bearing in range(int(start), int(end) + 1): &lt;BR /&gt;... arrPnts.add(createPointAtAngleWithBearing(pnt, bearing, length)) &lt;BR /&gt;... polygon = arcpy.Polygon(arrPnts, sr) &lt;BR /&gt;... lst_polygons.append(polygon) &lt;BR /&gt;... &lt;BR /&gt;... arcpy.CopyFeatures_management(lst_polygons, fc_out) &lt;BR /&gt;... &lt;BR /&gt;... def createPointAtAngleWithBearing(pnt, angle, distance): &lt;BR /&gt;... import math &lt;BR /&gt;... angle = math.radians(angle) &lt;BR /&gt;... dist_x, dist_y = (distance * math.cos(angle), distance * math.sin(angle)) &lt;BR /&gt;... return arcpy.Point(pnt.X + dist_x, pnt.Y + dist_y) &lt;BR /&gt;... &lt;BR /&gt;... if __name__ == '__main__': &lt;BR /&gt;... main()&lt;BR /&gt;... &lt;BR /&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 40, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 16, in main&lt;BR /&gt;TypeError: 'field_names' must be string or non empty sequence of strings&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 09:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287207#M9913</guid>
      <dc:creator>Hayley_DelMaynard</dc:creator>
      <dc:date>2017-02-18T09:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287208#M9914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;flds = ("SHAPE@", fld_start, fld_end, fld_dist)&lt;/P&gt;&lt;P&gt;for the last 3, you provided numbers rather than the field names that contained the values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 09:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287208#M9914</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-18T09:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287209#M9915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan. &amp;nbsp;I really appreciate the quick response. &amp;nbsp;I changed the lines to include the field names, but I still receive the below error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;Runtime error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;File "&amp;lt;string&amp;gt;", line 40, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;File "&amp;lt;string&amp;gt;", line 11, in main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt;AttributeError: DescribeData: Method spatialReference does not exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy &lt;BR /&gt;... &lt;BR /&gt;... def main(): &lt;BR /&gt;... fc_in = "C:\Users\ihwm\Documents\ArcGIS\Flood_NT_WA.gdb\points"&lt;BR /&gt;... fc_out = "C:\Users\ihwm\Documents\ArcGIS\Flood_NT_WA.gdb\points2"&lt;BR /&gt;... &lt;BR /&gt;... fld_start = "fld_start"&lt;BR /&gt;... fld_end = "fld_end"&lt;BR /&gt;... fld_dist = "fld_dist" &lt;BR /&gt;... &lt;BR /&gt;... sr = arcpy.Describe(fc_in).spatialReference &lt;BR /&gt;... arcpy.env.overwriteOutput = True &lt;BR /&gt;... &lt;BR /&gt;... flds = ("SHAPE@", fld_start, fld_end, fld_dist) &lt;BR /&gt;... lst_polygons = [1] &lt;BR /&gt;... with arcpy.da.SearchCursor(fc_in, flds) as curs: &lt;BR /&gt;... for row in curs: &lt;BR /&gt;... pnt_g = row[0] &lt;BR /&gt;... start = row[1] &lt;BR /&gt;... end = row[2] &lt;BR /&gt;... length = row[3] &lt;BR /&gt;... circle = pnt_g.buffer(length) &lt;BR /&gt;... pnt = pnt_g.firstPoint &lt;BR /&gt;... arrPnts = arcpy.Array() &lt;BR /&gt;... arrPnts.add(pnt) &lt;BR /&gt;... for bearing in range(int(start), int(end) + 1): &lt;BR /&gt;... arrPnts.add(createPointAtAngleWithBearing(pnt, bearing, length)) &lt;BR /&gt;... polygon = arcpy.Polygon(arrPnts, sr) &lt;BR /&gt;... lst_polygons.append(polygon) &lt;BR /&gt;... &lt;BR /&gt;... arcpy.CopyFeatures_management(lst_polygons, fc_out) &lt;BR /&gt;... &lt;BR /&gt;... def createPointAtAngleWithBearing(pnt, angle, distance): &lt;BR /&gt;... import math &lt;BR /&gt;... angle = math.radians(angle) &lt;BR /&gt;... dist_x, dist_y = (distance * math.cos(angle), distance * math.sin(angle)) &lt;BR /&gt;... return arcpy.Point(pnt.X + dist_x, pnt.Y + dist_y) &lt;BR /&gt;... &lt;BR /&gt;... if __name__ == '__main__': &lt;BR /&gt;... main()&lt;BR /&gt;... &lt;BR /&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 40, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 11, in main&lt;BR /&gt;AttributeError: DescribeData: Method spatialReference does not exist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 22:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287209#M9915</guid>
      <dc:creator>Hayley_DelMaynard</dc:creator>
      <dc:date>2017-02-20T22:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287210#M9916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be having issues with escape characters in the lines where you specify the paths. Try adding an 'r' to denote raw string notation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;fc_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Users\ihwm\Documents\ArcGIS\Flood_NT_WA.gdb\points"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 22:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287210#M9916</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2017-02-20T22:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287211#M9917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Darren! &amp;nbsp;I'm still getting the same message. &amp;nbsp;Could it be because I'm using Arcgis 10.4.1 and that code was written for an earlier version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy &lt;BR /&gt;... &lt;BR /&gt;... def main(): &lt;BR /&gt;... fc_in = r"C:\Users\ihwm\Documents\ArcGIS\Flood_NT_WA.gdb\points"&lt;BR /&gt;... fc_out = r"C:\Users\ihwm\Documents\ArcGIS\Flood_NT_WA.gdb\points2"&lt;BR /&gt;... &lt;BR /&gt;... fld_start = "fld_start"&lt;BR /&gt;... fld_end = "fld_end"&lt;BR /&gt;... fld_dist = "fld_dist" &lt;BR /&gt;... &lt;BR /&gt;... sr = arcpy.Describe(fc_in).spatialReference &lt;BR /&gt;... arcpy.env.overwriteOutput = True &lt;BR /&gt;... &lt;BR /&gt;... flds = ("SHAPE@", fld_start, fld_end, fld_dist) &lt;BR /&gt;... lst_polygons = [1] &lt;BR /&gt;... with arcpy.da.SearchCursor(fc_in, flds) as curs: &lt;BR /&gt;... for row in curs: &lt;BR /&gt;... pnt_g = row[0] &lt;BR /&gt;... start = row[1] &lt;BR /&gt;... end = row[2] &lt;BR /&gt;... length = row[3] &lt;BR /&gt;... circle = pnt_g.buffer(length) &lt;BR /&gt;... pnt = pnt_g.firstPoint &lt;BR /&gt;... arrPnts = arcpy.Array() &lt;BR /&gt;... arrPnts.add(pnt) &lt;BR /&gt;... for bearing in range(int(start), int(end) + 1): &lt;BR /&gt;... arrPnts.add(createPointAtAngleWithBearing(pnt, bearing, length)) &lt;BR /&gt;... polygon = arcpy.Polygon(arrPnts, sr) &lt;BR /&gt;... lst_polygons.append(polygon) &lt;BR /&gt;... &lt;BR /&gt;... arcpy.CopyFeatures_management(lst_polygons, fc_out) &lt;BR /&gt;... &lt;BR /&gt;... def createPointAtAngleWithBearing(pnt, angle, distance): &lt;BR /&gt;... import math &lt;BR /&gt;... angle = math.radians(angle) &lt;BR /&gt;... dist_x, dist_y = (distance * math.cos(angle), distance * math.sin(angle)) &lt;BR /&gt;... return arcpy.Point(pnt.X + dist_x, pnt.Y + dist_y) &lt;BR /&gt;... &lt;BR /&gt;... if __name__ == '__main__': &lt;BR /&gt;... main()&lt;BR /&gt;... &lt;BR /&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 40, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 11, in main&lt;BR /&gt;AttributeError: DescribeData: Method spatialReference does not exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/326822_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 00:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287211#M9917</guid>
      <dc:creator>Hayley_DelMaynard</dc:creator>
      <dc:date>2017-02-21T00:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287212#M9918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried your code reference to the spatial reference object and it worked... you have a file issue or a disconnect to arcpy for some reason.&lt;/P&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;inFC
&lt;SPAN class="string token"&gt;'C:\\Data\\points\\fishnet_label.shp'&lt;/SPAN&gt;
sr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inFC&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference
sr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name
&lt;SPAN class="string token"&gt;'NAD_1983_CSRS_MTM_9'&lt;/SPAN&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287212#M9918</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287213#M9919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure 'points' is a feature class and not a nonspatial table, that wouldn't have a spatial reference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 01:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287213#M9919</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2017-02-21T01:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oriented buffers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287214#M9920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren,&lt;/P&gt;&lt;P&gt;Thanks again for all your help. &amp;nbsp;I started over, taking a subset of my data and creating a feature class layer of 500 points saved in the Default gdb (FloodTestFC). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/326823_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/326824_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the code I use:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy &lt;BR /&gt;... &lt;BR /&gt;... def main(): &lt;BR /&gt;... fc_in = r"C:\Users\ihwm\Documents\ArcGIS\Default.gdb\FloodTestFC"&lt;BR /&gt;... fc_out = r"C:\Users\ihwm\Documents\ArcGIS\Default.gdb\FloodTestFC2"&lt;BR /&gt;... &lt;BR /&gt;... fld_start = "fld_start"&lt;BR /&gt;... fld_end = "fld_end"&lt;BR /&gt;... fld_dist = "fld_dist" &lt;BR /&gt;... &lt;BR /&gt;... sr = arcpy.Describe(fc_in).spatialReference &lt;BR /&gt;... arcpy.env.overwriteOutput = True &lt;BR /&gt;... &lt;BR /&gt;... flds = ("SHAPE@", fld_start, fld_end, fld_dist) &lt;BR /&gt;... lst_polygons = [1] &lt;BR /&gt;... with arcpy.da.SearchCursor(fc_in, flds) as curs: &lt;BR /&gt;... for row in curs: &lt;BR /&gt;... pnt_g = row[0] &lt;BR /&gt;... start = row[1] &lt;BR /&gt;... end = row[2] &lt;BR /&gt;... length = row[3] &lt;BR /&gt;... circle = pnt_g.buffer(length) &lt;BR /&gt;... pnt = pnt_g.firstPoint &lt;BR /&gt;... arrPnts = arcpy.Array() &lt;BR /&gt;... arrPnts.add(pnt) &lt;BR /&gt;... for bearing in range(int(start), int(end) + 1): &lt;BR /&gt;... arrPnts.add(createPointAtAngleWithBearing(pnt, bearing, length)) &lt;BR /&gt;... polygon = arcpy.Polygon(arrPnts, sr) &lt;BR /&gt;... lst_polygons.append(polygon) &lt;BR /&gt;... &lt;BR /&gt;... arcpy.CopyFeatures_management(lst_polygons, fc_out) &lt;BR /&gt;... &lt;BR /&gt;... def createPointAtAngleWithBearing(pnt, angle, distance): &lt;BR /&gt;... import math &lt;BR /&gt;... angle = math.radians(angle) &lt;BR /&gt;... dist_x, dist_y = (distance * math.cos(angle), distance * math.sin(angle)) &lt;BR /&gt;... return arcpy.Point(pnt.X + dist_x, pnt.Y + dist_y) &lt;BR /&gt;... &lt;BR /&gt;... if __name__ == '__main__': &lt;BR /&gt;... main()&lt;BR /&gt;... &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And this is the error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Runtime error &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; File "&amp;lt;string&amp;gt;", line 40, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; File "&amp;lt;string&amp;gt;", line 31, in main&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\management.py", line 2335, in CopyFeatures&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; raise e&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RuntimeError: Object: Error in executing tool&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 02:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/oriented-buffers/m-p/287214#M9920</guid>
      <dc:creator>Hayley_DelMaynard</dc:creator>
      <dc:date>2017-02-21T02:43:35Z</dc:date>
    </item>
  </channel>
</rss>

