<?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 How draw lines between two point? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038455#M5763</link>
    <description>&lt;P&gt;I try draw line between points, but on map i dont see results&lt;/P&gt;&lt;PRE class="lang-py s-code-block hljs python"&gt;input_table = &lt;SPAN class="hljs-string"&gt;r"C:\Users\Admin\table.csv"&lt;/SPAN&gt;
out_lines = &lt;SPAN class="hljs-string"&gt;r"C:\Users\Проект.gdb\Результат"&lt;/SPAN&gt;
&lt;SPAN class="hljs-comment"&gt;#XY To Line&lt;/SPAN&gt;
arcpy.management.XYToLine(input_table,out_lines,
                         &lt;SPAN class="hljs-string"&gt;"LOND1"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"LATD1"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"LOND2"&lt;/SPAN&gt;,
                         &lt;SPAN class="hljs-string"&gt;"LATD2"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"GEODESIC"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"idnum"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;table.csv&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lang-py s-code-block hljs python"&gt;idnum;LOND1;LATD1;LOND2;LATD2
&lt;SPAN class="hljs-number"&gt;1&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43388800000008&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.983686000000034&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43402500000008&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.98425700000007&lt;/SPAN&gt;
&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43412900000004&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.98377300000004&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43314600000008&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.981682000000035&lt;/SPAN&gt;
&lt;SPAN class="hljs-number"&gt;3&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.433530000000076&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.983711000000085&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43436800000006&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.985129000000086&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 19 Mar 2021 07:00:52 GMT</pubDate>
    <dc:creator>Radzhabasda</dc:creator>
    <dc:date>2021-03-19T07:00:52Z</dc:date>
    <item>
      <title>How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038455#M5763</link>
      <description>&lt;P&gt;I try draw line between points, but on map i dont see results&lt;/P&gt;&lt;PRE class="lang-py s-code-block hljs python"&gt;input_table = &lt;SPAN class="hljs-string"&gt;r"C:\Users\Admin\table.csv"&lt;/SPAN&gt;
out_lines = &lt;SPAN class="hljs-string"&gt;r"C:\Users\Проект.gdb\Результат"&lt;/SPAN&gt;
&lt;SPAN class="hljs-comment"&gt;#XY To Line&lt;/SPAN&gt;
arcpy.management.XYToLine(input_table,out_lines,
                         &lt;SPAN class="hljs-string"&gt;"LOND1"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"LATD1"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"LOND2"&lt;/SPAN&gt;,
                         &lt;SPAN class="hljs-string"&gt;"LATD2"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"GEODESIC"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"idnum"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;table.csv&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lang-py s-code-block hljs python"&gt;idnum;LOND1;LATD1;LOND2;LATD2
&lt;SPAN class="hljs-number"&gt;1&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43388800000008&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.983686000000034&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43402500000008&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.98425700000007&lt;/SPAN&gt;
&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43412900000004&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.98377300000004&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43314600000008&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.981682000000035&lt;/SPAN&gt;
&lt;SPAN class="hljs-number"&gt;3&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.433530000000076&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.983711000000085&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;47.43436800000006&lt;/SPAN&gt;;&lt;SPAN class="hljs-number"&gt;42.985129000000086&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Mar 2021 07:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038455#M5763</guid>
      <dc:creator>Radzhabasda</dc:creator>
      <dc:date>2021-03-19T07:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038457#M5764</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check if &lt;EM&gt;out_lines&lt;/EM&gt; are automatically added to to the map. If not add it from your .gdb. Next, right click the layer and choose &lt;EM&gt;Zoom to Layer&lt;/EM&gt;. Check the attachment below.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 07:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038457#M5764</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2021-03-19T07:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038473#M5765</link>
      <description>&lt;P&gt;Outline is not created. How it create?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038473#M5765</guid>
      <dc:creator>Radzhabasda</dc:creator>
      <dc:date>2021-03-19T08:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038478#M5766</link>
      <description>&lt;P&gt;What do you mean by outline? You can change the symbology as the respective ArcGIS Pro tab.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038478#M5766</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2021-03-19T08:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038479#M5767</link>
      <description>&lt;P&gt;Sorry, no outline. I mean - feature&amp;nbsp;&lt;EM&gt;out_lines&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;is not created on map&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038479#M5767</guid>
      <dc:creator>Radzhabasda</dc:creator>
      <dc:date>2021-03-19T08:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038481#M5768</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Radzhabasda_0-1616143385977.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8877iA9824A59F88CFA0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Radzhabasda_0-1616143385977.png" alt="Radzhabasda_0-1616143385977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I not see this feature in project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038481#M5768</guid>
      <dc:creator>Radzhabasda</dc:creator>
      <dc:date>2021-03-19T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038482#M5769</link>
      <description>&lt;P&gt;ok. In ArcGIS Pro/ ArcMap Catalog window, navigate to&lt;/P&gt;&lt;PRE class="lang-py s-code-block hljs python"&gt;&lt;SPAN class="hljs-string"&gt;C:\Users\Проект.gdb&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Do you see &lt;SPAN class="hljs-string"&gt;Результат&lt;/SPAN&gt;? If yes, drag and drop it into your map window.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038482#M5769</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2021-03-19T08:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038505#M5770</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/xy-to-line.htm" target="_blank"&gt;XY To Line (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;requires a table of the appropriate structure&lt;/P&gt;&lt;P&gt;it won't take a semi-colon separated csv file as input, you need to make convert it into a geodatabase table first&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 09:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038505#M5770</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-19T09:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How draw lines between two point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038563#M5772</link>
      <description>&lt;P&gt;Add some changes. Code works, but in arcgis i dont see changes&lt;/P&gt;&lt;P&gt;# -*- coding: utf-8 -*-&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import os&lt;BR /&gt;import json&lt;BR /&gt;arcpy.env.workspace = r"C:\Project.GDB"&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;featureList = []&lt;/P&gt;&lt;P&gt;input_table = r"C:\Users\Admin\table.csv"&lt;BR /&gt;out_lines = r"C:\Project.GDB\Результат"&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 12:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-draw-lines-between-two-point/m-p/1038563#M5772</guid>
      <dc:creator>Radzhabasda</dc:creator>
      <dc:date>2021-03-19T12:16:47Z</dc:date>
    </item>
  </channel>
</rss>

