<?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: Calculating angles using ArcGIS Desktop 10.2  in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83965#M2897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren - you're absolutely right. I should have post that. Apologies. Here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;fc = "C:\Users\jmullins\Desktop\GIS Data\Customer Data\Washington County FL\Washington County FL Data\WashingtonCountyFL.gdb\GEO\StreetCenterline"&amp;nbsp; &lt;/P&gt;&lt;P&gt;sr = arcpy.Describe(fc).spatialReference&amp;nbsp; &lt;/P&gt;&lt;P&gt;radius = 50&amp;nbsp; &lt;/P&gt;&lt;P&gt;out_fc = r'in_memory\points'&amp;nbsp; &lt;/P&gt;&lt;P&gt;int_pt = r'in_memory\int_pt'&amp;nbsp; &lt;/P&gt;&lt;P&gt;arcpy.Intersect_analysis(fc,int_pt,output_type='POINT') &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Apr 2016 19:38:40 GMT</pubDate>
    <dc:creator>JeremyMullins4</dc:creator>
    <dc:date>2016-04-01T19:38:40Z</dc:date>
    <item>
      <title>Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83943#M2875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I need to find angles of streets where they intersect with roadways covering the entire state. Does anyone have a method and/or tools in mind? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 19:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83943#M2875</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-01-21T19:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Finding angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83944#M2876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have an Advanced License you could use the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/analysis-toolbox/near.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/analysis-toolbox/near.htm"&gt;Near—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 19:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83944#M2876</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-01-21T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Finding angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83945#M2877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help Wes!&lt;/P&gt;&lt;P&gt;It looks as though this tool returns angle values in relation to North, South, East, or West. I am looking for a method that returns an angle where 2 lines intersect. In addition, I have a least a few hundreds of thousands of intersecting lines to measure those angles... We are trying to find all the intersecting roadways in the state that are at an angle of less than 40 degrees, where they intersect, and run crash rates and analyses. Do you still think this tool will do the job of measuring those angles?&lt;/P&gt;&lt;P&gt;Thanks again for the prompt response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 20:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83945#M2877</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-01-23T20:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83946#M2878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want want to move this to Geoprocessing &lt;A href="https://community.esri.com/docs/DOC-1544"&gt;GeoNet Community Structure&lt;/A&gt;&amp;nbsp; this space is for help on GeoNet and how to use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 20:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83946#M2878</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-23T20:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83947#M2879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a model that should accomplish what you are trying to do.If you'll add your streets layer and leave the defaults it should produce a point file at each intersection that has an angle between 5 and 40. I made these parameters so they could be adjusted, the other distance field is how far back from the intersection do you want to check the angle, 50 was used you may want smaller. The model will need an Advanced license to run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jan 2016 16:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83947#M2879</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-01-24T16:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83948#M2880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wes,&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;I ran the model and it failed with this error:&lt;/P&gt;&lt;P&gt;Assembling Features...&lt;BR /&gt;Succeeded at Mon Jan 25 11:06:26 2016 (Elapsed Time: 2 minutes 4 seconds)&lt;BR /&gt;Executing (Generate Near Table): GenerateNearTable in_memory\roadsIntersect in_memory\Roads_Intersect_Buffer_Inter in_memory\nearTable "51 Feet" NO_LOCATION ANGLE ALL 0 PLANAR&lt;BR /&gt;Start Time: Mon Jan 25 11:06:27 2016&lt;BR /&gt;Determining data processing extents...&lt;BR /&gt;Building a neighborhood index from the Near Features...&lt;BR /&gt;Generating Near Table...&lt;BR /&gt;Found 346 feature(s) within 51.000000&lt;BR /&gt;Succeeded at Mon Jan 25 11:06:27 2016 (Elapsed Time: 0.56 seconds)&lt;BR /&gt;Executing (findLessThanAngle): findLessThanAngle 50 5 in_memory\roadsIntersect in_memory\nearTable&lt;BR /&gt;Start Time: Mon Jan 25 11:06:27 2016&lt;BR /&gt;Running script findLessThanAngle...&lt;BR /&gt;Failed script findLessThanAngle...&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "Y:\GISData\Tools\FindAngletoolbox\findAngle.tbx#findLessThanAngle.py", line 37, in &amp;lt;module&amp;gt;&lt;BR /&gt;NameError: name 'each' is not defined&lt;/P&gt;&lt;P&gt;Failed to execute (findLessThanAngle).&lt;BR /&gt;Failed at Mon Jan 25 11:06:28 2016 (Elapsed Time: 0.23 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deleted the "each" out of the python code, ran it, but it only gave me 22 intersecting roadways with angles of &amp;lt; than 50 degrees out of 2299 total...I wasn't sure if it was my python code editing that gave me the short list.&lt;/P&gt;&lt;P&gt;I&amp;nbsp; know very little about python. It is in my toolbox of things to do, no pun intended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that, it does look promising!&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83948#M2880</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-01-25T17:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83949#M2881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be willing to share a portion of your data? 22 is far less than i expected for a state wide search. I'll check the code against your data. I tested this code against county data and returned over 200.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 20:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83949#M2881</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-01-25T20:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83950#M2882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delayed response. Been kind of busy.&lt;/P&gt;&lt;P&gt;Yes, I have attached a county with a roadway layer here. I have tried running the model several more times and now I cannot get any results at all to show in the table of contents. Did I mess something up?&lt;/P&gt;&lt;P&gt;I have also attached the model again here to verify whether or not I have corrupted it... I even tried removing the original model and reinstalling it into the "Toolbox" in ArcMap...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83950#M2882</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-01-27T17:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83951#M2883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last reply didn't have an "attach" tool located on it...&lt;/P&gt;&lt;P&gt;Attached is a county dataset. As I said earlier, the model will not offer any results on this county either, although it does run and complete.&lt;/P&gt;&lt;P&gt;I have also attached here again the "findAngle" tool to check if I have corrupted it...&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83951#M2883</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-01-27T17:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83952#M2884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edited the model again using file geodatabases instead of the "in_memory" modules and &lt;STRONG&gt;YES, the model completes and stores the intersection locations that have the upper and lower limit angles.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Awesome!&amp;nbsp; I HAVE to learn Python!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks!!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 19:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83952#M2884</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-01-27T19:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83953#M2885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to here it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 20:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83953#M2885</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-01-27T20:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83954#M2886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wes,&lt;/P&gt;&lt;P&gt;It's me again with problems with the angles of roadways. I have found the tool you provided, which is pretty awesome, has the tendency to produce a point on angles that are greater than the parameters set in the model. Although&amp;nbsp; the tool does find these angles at intersections, it tends to produce some outside the parameters set. These extra points that are suppose to signify angles within the tool parameters are &lt;STRONG&gt;always&lt;/STRONG&gt; located where&amp;nbsp; buffers overlap. What do you think? Can these be removed somehow via your tool?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="overlappingcircles.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/177845_overlappingcircles.png" style="width: 345px; height: 225px;" /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83954#M2886</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-02-04T19:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83955#M2887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try using a smaller buffer size? This may get the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: &lt;/P&gt;&lt;P&gt;I just checked the model you should also change the search distance in the "Generate Near Table" tool to match the buffer size you use. Originally i used the buffer distance + 1 to make sure i was far enough out to capture the intended points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 20:07:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83955#M2887</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-02-04T20:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83956#M2888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This post has been on my mind for a while, and here's what I came up with. I suspect it's quite similar to Wes' previously posted solution, but works for all license levels:&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; import os
... fc = "myLines"
... sr = arcpy.Describe(fc).spatialReference
... radius = 50
... out_fc = r'in_memory\points'
... int_pt = r'in_memory\int_pt'
... arcpy.Intersect_analysis(fc,int_pt,output_type='POINT')
... diss_int_pt = r'in_memory\diss_int_pt'
... arcpy.Dissolve_management(int_pt,diss_int_pt,'#',[["FID","MIN"]],"SINGLE_PART")
... buff = r'in_memory\buff'
... arcpy.Buffer_analysis(diss_int_pt,buff,str(radius) + ' METERS')
... buff_line_int = r'in_memory\buff_line_int'
... arcpy.Intersect_analysis([buff,fc],buff_line_int,output_type='POINT')
... sing_buff_line_int = r'in_memory\sing_buff_line_int'
... arcpy.MultipartToSinglepart_management(buff_line_int,sing_buff_line_int)
... new_points = {}
... with arcpy.da.SearchCursor(diss_int_pt,['OID@','SHAPE@'],spatial_reference=sr) as cursor1:
...&amp;nbsp;&amp;nbsp;&amp;nbsp; for row1 in cursor1:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cent_pt = row1[1].centroid
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; angs = []
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(sing_buff_line_int,'SHAPE@','\"FID_buff\" = ' + str(row1[0]),spatial_reference=sr) as cursor2:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row2 in cursor2:
...&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; buff_pt = row2[0].centroid
...&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; dx = cent_pt.X - buff_pt.X
...&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; dy = cent_pt.Y - buff_pt.Y
...&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; if dx &amp;lt; 0 and dy &amp;lt;= 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang = math.degrees(math.atan(abs(dy/dx)))
...&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; if dx &amp;lt;= 0 and dy &amp;gt; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang = math.degrees(math.atan(abs(dx/dy))) + 270
...&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; if dx &amp;gt; 0 and dy &amp;gt;= 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang = math.degrees(math.atan(abs(dy/dx))) + 180
...&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; if dx &amp;gt;= 0 and dy &amp;lt; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang = math.degrees(math.atan(abs(dx/dy))) + 90
...&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; angs.append(ang)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; angs.sort()
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(1,len(angs)):
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid_ang = ((angs&lt;I&gt; + angs[i-1])/2)&lt;/I&gt;
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang_diff = angs&lt;I&gt; - angs[i-1]&lt;/I&gt;
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_x = cent_pt.X + (radius * math.cos(math.radians(mid_ang)))
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_y = cent_pt.Y + (radius * math.sin(math.radians(mid_ang)))
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_point = arcpy.PointGeometry(arcpy.Point(new_x, new_y),sr)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_points[str(row1[0]) + '_' + str(i)] = [ang_diff,new_point]
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid_ang = (((360-angs[-1]) + angs[0])/2) - (360-angs[-1])
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang_diff = (360-angs[-1]) + angs[0]
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_x = cent_pt.X + (radius * math.cos(math.radians(mid_ang)))
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_y = cent_pt.Y + (radius * math.sin(math.radians(mid_ang)))
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_point = arcpy.PointGeometry(arcpy.Point(new_x, new_y),sr)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_points[str(row1[0]) + '_0'] = [ang_diff,new_point]
... arcpy.CreateFeatureclass_management(os.path.dirname(out_fc),os.path.basename(out_fc),'POINT',spatial_reference=sr)
... arcpy.AddField_management(out_fc,'FID_buff',"LONG")
... arcpy.AddField_management(out_fc,'ANGLE',"DOUBLE")
... iCursor = arcpy.da.InsertCursor(out_fc,['SHAPE@','FID_buff','ANGLE'])
... for k,v in new_points.iteritems():
...&amp;nbsp;&amp;nbsp;&amp;nbsp; row = [v[1],k.split('_')[0],v[0]]
...&amp;nbsp;&amp;nbsp;&amp;nbsp; iCursor.insertRow(row)&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/181052_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83956#M2888</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-10T23:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83957#M2889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren NICE!&lt;/P&gt;&lt;P&gt;Does your second intersect create points where the buffers overlap see above from Brian? I told Brian to reduce the buffer size and that should work, but like you I've thought a lot about this one too. In retrospect i think i would add a select by location and just gather the points that intersect the streets and calculate from there. After looking at your code i feel like i got off easy using the near tool to grab the angles of the line and doing light math to calculate the angles. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 00:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83957#M2889</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-02-12T00:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83958#M2890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script makes points on each buffer in isolation, so there is no influence from any other buffer. I agree that the buffer size should be as low as reasonable. You would run into problems if the buffer overlapped other intersections or parallel streets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/181340_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Bad:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/181341_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83958#M2890</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-02-12T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83959#M2891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;I also thought of completing this task similar to what your image shows. It seems it should be somewhat simple; buffer points at intersections by 100 ft, convert the buffers to a line, and simply clip the arc of each resulting line where the roads intersect the circular line. Any circular line that has been clipped from a roadway line that has a arc length between the parameters of 1ft to 122.17ft (at a radius of 100ft) would be an intersection where a roadway has an intersecting roadway of less than 70 degrees. The problem I had with this method is that the process returned many arcs lengths from the buffered lines that were actually not due to the clipping function but rather due to the fact that they were not completely closed lines and thus left short arcs...&lt;/P&gt;&lt;P&gt;Your model looks very promising and seems a good method to use; however, I keep getting error messages when put into the python window. I haven’t much experience with python.&lt;/P&gt;&lt;P&gt;example: Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 9, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp; File "c:\program files (x86) \arcgis\desktop10.2\arcpy\arcpy\management.py", line 4021, in Dissolve&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e ExecuteError: ERROR 000369: Invalid input field(s)&lt;/P&gt;&lt;P&gt;Hope this makes sense...&lt;/P&gt;&lt;P&gt;And, thanks for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 02:28:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83959#M2891</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-02-15T02:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83960#M2892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;I finally got the script to work by exporting the fc into a shapefile.&lt;/P&gt;&lt;P&gt;And now receiving this error message:&lt;/P&gt;&lt;P&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 49, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", &lt;/P&gt;&lt;P&gt;line 3052, in AddField&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e ExecuteError: ERROR 000732: Input Table: Dataset in_memory\points does not exist or is not supported &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 03:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83960#M2892</guid>
      <dc:creator>BrianVann</dc:creator>
      <dc:date>2016-02-17T03:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83961#M2893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the following issue running your python script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\jmullins\Desktop\Test.py", line 3, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sr = arcpy.Describe(fc).spatialReference&lt;/P&gt;&lt;P&gt;NameError: name 'arcpy' is not defined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I threw an import arcpy underneath import os, and now I am getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\jmullins\Desktop\Test.py", line 8, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Intersect_analysis(fc,int_pt,output_type='POINT')&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\analysis.py", line 289, in Intersect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;RuntimeError: Object: Error in executing tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize for being inept at python scripting, and I appreciate any help you (or anyone else) can provide. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 17:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83961#M2893</guid>
      <dc:creator>JeremyMullins4</dc:creator>
      <dc:date>2016-04-01T17:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating angles using ArcGIS Desktop 10.2</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83962#M2894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the below at the top of the script&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14595361184682022" data-renderedposition="34_8_1155_16" jivemacro_uid="_14595361184682022" modifiedtitle="true"&gt;&lt;P&gt;import arcpy &lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 18:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-angles-using-arcgis-desktop-10-2/m-p/83962#M2894</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-04-01T18:42:24Z</dc:date>
    </item>
  </channel>
</rss>

