<?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: Drawing lines at angles from xy coordinate in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529929#M30043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Laura:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines with 0 distance are points, not lines, and the tool does not support drawing points.&amp;nbsp; You must assign a length value greater than 0 to those rows or eliminate those rows as Darren suggested.&amp;nbsp; You don't have to necessarily delete those rows if you use a layer/table view with a selection of only the rows that have a length greater than 0 as the input to the tool.&amp;nbsp; Potentially one approach to those rows with negative lengths is to select all of those rows and calculate the angle field to reverse the angle by adding 180 degrees to the angle (the tool should handle angle values that equal or exceed 360 degrees), then set the length to ABS([20yrSpread]) so that it is positive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2015 17:52:48 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2015-12-04T17:52:48Z</dc:date>
    <item>
      <title>Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529924#M30038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three fixed points and a number of lines I would like to draw that radiate out from each point.&amp;nbsp; I have tried to use the bearing distance to line tool but it keeps failing for some reason and I'm not exactly sure how to draw my lines otherwise.&amp;nbsp; I am using the angle field for the bearing and this is in degrees (I think...the values fall between 0 and 360).&amp;nbsp; And my distance field is the 20yrSpread field which is in KM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated...see the attached table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 21:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529924#M30038</guid>
      <dc:creator>LauraBlackburn</dc:creator>
      <dc:date>2015-12-03T21:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529925#M30039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Bearing Distance to Line tool fails due to the negative values in the 20yrSpread field.&amp;nbsp; It is impossible to create a line with negative length.&amp;nbsp; You either need to change all the values to their absolute value (positive), or create a new field and set it to the absolute value of the 20yrSrpread length.&amp;nbsp; If you need to reverse the line direction for some reason after creating it based on the signed value of the length in the 20yrSpread field, that would happen in a separate step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 22:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529925#M30039</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2015-12-03T22:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529926#M30040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have some negative numbers in your distance field (20yrSpread)...might be causing the tool to fail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 22:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529926#M30040</guid>
      <dc:creator>KyleBalke__GISP</dc:creator>
      <dc:date>2015-12-03T22:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529927#M30041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I altered my excel file (attached) so that the negative values were just zeros instead of a negative value and re-ran the bearing distance tool using the alt10yrSpread or the alt20yrSpread fields for the distance and it still didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the error that I get in case that helps to figure out the problem:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 2360, in BearingDistanceToLine&lt;/TD&gt;&lt;TD&gt;raise e ExecuteError: ERROR 999999: Error executing function. No current record. Failed to execute (BearingDistanceToLine).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas on how to draw these lines besides manually drawing them in an editing session is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 16:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529927#M30041</guid>
      <dc:creator>LauraBlackburn</dc:creator>
      <dc:date>2015-12-04T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529928#M30042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume your problem is now that you're trying to draw lines of distance zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deleted those rows in your table, and it seems to work, although I'm not sure what your spatial reference is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="151663" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/151663_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 17:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529928#M30042</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-12-04T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529929#M30043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Laura:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines with 0 distance are points, not lines, and the tool does not support drawing points.&amp;nbsp; You must assign a length value greater than 0 to those rows or eliminate those rows as Darren suggested.&amp;nbsp; You don't have to necessarily delete those rows if you use a layer/table view with a selection of only the rows that have a length greater than 0 as the input to the tool.&amp;nbsp; Potentially one approach to those rows with negative lengths is to select all of those rows and calculate the angle field to reverse the angle by adding 180 degrees to the angle (the tool should handle angle values that equal or exceed 360 degrees), then set the length to ABS([20yrSpread]) so that it is positive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 17:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529929#M30043</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2015-12-04T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529930#M30044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you doing anything special to the table, like placing it in a geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to run the tool (after changing the values to all positives) it tells me that the input table does not exist or is not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering what you did to make it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529930#M30044</guid>
      <dc:creator>LauraBlackburn</dc:creator>
      <dc:date>2015-12-04T18:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529931#M30045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried making all those values ones and it still didn't work.&amp;nbsp; I do completely understand what you are saying, though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I'll try a few more changes to the table and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529931#M30045</guid>
      <dc:creator>LauraBlackburn</dc:creator>
      <dc:date>2015-12-04T18:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529932#M30046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try getting it into any other format than an excel file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529932#M30046</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-04T18:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529933#M30047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I ran this directly from the provided Excel file. I just highlighted the zero distance rows in Excel, right-click delete (don't leave blank rows by pressing delete key), save Excel, then run Bearing Distance to Line tool on Excel file. That said, sometimes Excel files cause funky issues and can vary between versions of Excel and ArcGIS, so don't be shocked if it doesn't work in .xlsx format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529933#M30047</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-12-04T18:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529934#M30048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Field names cannot begin with numbers.&amp;nbsp; So the 15yrDisplacement and 20yrSpread fields need to be changed to start with a letter.&amp;nbsp; I changed them to Displacement15yr and Spread20yr and the tool then worked directly from the xlsx file I downloaded.&amp;nbsp; The output table also should begin with a letter and not a number.&amp;nbsp; I figured this out when I ran the Excel to Table tool and it automatically changed the 15yrDisplacement and 20yrSpread column names to f15yrDisplacement and f20yrSpread.&amp;nbsp; Beginning field names with numbers has always been discouraged since it is known to cause issues all over ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool actually does work with the negative length values.&amp;nbsp; It automatically reverses the angle and converts the length to a positive value when it encounters a negative length value, so if that is what you want you don't have to change the bearing or distance values for the rows with negative lengths.&amp;nbsp; The negative length lines are highlighted in blue in the picture below.&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/151809_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529934#M30048</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2015-12-04T18:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529935#M30049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all of your for all of your helpful comments.&amp;nbsp; It ended up working when I changed the table to a csv file.&amp;nbsp; I guess Arc 10.3.1 and Excel 2013 don't play nicely together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help - this forum is great for a speedy response to most all of the GIS problems I run into!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great weekend!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529935#M30049</guid>
      <dc:creator>LauraBlackburn</dc:creator>
      <dc:date>2015-12-04T19:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529936#M30050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect when you converted the data to a cvs file ArcMap imports the field names that began with numbers differently.&amp;nbsp; Also, if you check the output of the Bearing Distance to Line tool the cvs file created I bet the 15yrDisplacement and 20yrSpread field names changed to begin with a letter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529936#M30050</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2015-12-04T19:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529937#M30051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in summary...&lt;/P&gt;&lt;P&gt;the tools allows you to work with ill-formed data files without checks for the things that will cause it to crash.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several links on how to work with excel files, which are quite good, unfortunately, the advice therein is not checked by the tool itself.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there are a few help file topics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/tables/understanding-how-to-use-microsoft-excel-files-in-arcgis.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/tables/understanding-how-to-use-microsoft-excel-files-in-arcgis.htm"&gt;Understanding how to use Microsoft Excel files in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/tables/formatting-a-table-in-microsoft-excel-for-use-in-arcgis.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/tables/formatting-a-table-in-microsoft-excel-for-use-in-arcgis.htm"&gt;Formatting a table in Microsoft Excel for use in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and several other links elsewhere for the user to search out and explore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529937#M30051</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-04T19:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing lines at angles from xy coordinate</title>
      <link>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529938#M30052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arc did allow me to bring the CSV file in with numbers at the beginning of field names, but when that table is exported into a gdb then the field names are changed to include an "F" at the beginning of the numeric field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, thanks Dan for links.&amp;nbsp; I'll check into those and try not to create poorly constructed excel files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/drawing-lines-at-angles-from-xy-coordinate/m-p/529938#M30052</guid>
      <dc:creator>LauraBlackburn</dc:creator>
      <dc:date>2015-12-04T19:52:11Z</dc:date>
    </item>
  </channel>
</rss>

