<?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 Create Lines between Polygons based on Polygon Attributes in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/create-lines-between-polygons-based-on-polygon/m-p/435912#M942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I create a line between two polygons based on the polygons' attributes. For example, I want to show migration between polygons, Alaska and Wyoming. The Alaska polygon has an origin state attribute with value, "Alaska", and a destination state attribute with value, "Wyoming". Is there a geoprocessing tool or other process that will draw a line between the Alaska and Wyoming polygons based on these attributes. I'm trying to create a map&amp;nbsp; similar to this but based on states not counties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.forbes.com/special-report/2011/migration.html" title="https://www.forbes.com/special-report/2011/migration.html"&gt;American Migration [Interactive Map] - Forbes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2018 08:31:58 GMT</pubDate>
    <dc:creator>ManuelCajuguiran</dc:creator>
    <dc:date>2018-12-17T08:31:58Z</dc:date>
    <item>
      <title>Create Lines between Polygons based on Polygon Attributes</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-lines-between-polygons-based-on-polygon/m-p/435912#M942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I create a line between two polygons based on the polygons' attributes. For example, I want to show migration between polygons, Alaska and Wyoming. The Alaska polygon has an origin state attribute with value, "Alaska", and a destination state attribute with value, "Wyoming". Is there a geoprocessing tool or other process that will draw a line between the Alaska and Wyoming polygons based on these attributes. I'm trying to create a map&amp;nbsp; similar to this but based on states not counties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.forbes.com/special-report/2011/migration.html" title="https://www.forbes.com/special-report/2011/migration.html"&gt;American Migration [Interactive Map] - Forbes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 08:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-lines-between-polygons-based-on-polygon/m-p/435912#M942</guid>
      <dc:creator>ManuelCajuguiran</dc:creator>
      <dc:date>2018-12-17T08:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Lines between Polygons based on Polygon Attributes</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-lines-between-polygons-based-on-polygon/m-p/435913#M943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nothing automagic, but with the correct coordinates in the polygon layer table you could connect the centroids of the polygons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-geometry-attributes.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-geometry-attributes.htm"&gt;Add Geometry Attributes—Data Management toolbox | ArcGIS Desktop&lt;/A&gt; &amp;nbsp; using the centroid coordinates for the two polygons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a new *.csv text file containing&lt;/P&gt;&lt;P&gt;alaskaX, alaskaY, wyomingX, wymoningY &amp;nbsp; as the header, then add the coordinates of the centroid on the next line&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12124, &amp;nbsp; 123132,&amp;nbsp; 12312, &amp;nbsp; &amp;nbsp; &amp;nbsp; 123123 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; more appropriate values obviously&lt;/P&gt;&lt;P&gt;Use the csv file and ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/xy-to-line.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/xy-to-line.htm"&gt;XY To Line—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make the geodesic between them.&amp;nbsp; Make sure you use define the coordinate system being used (Define Projection tool in arctoolbox)&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-lines-between-polygons-based-on-polygon/m-p/435913#M943</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-12-17T10:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create Lines between Polygons based on Polygon Attributes</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-lines-between-polygons-based-on-polygon/m-p/435914#M944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a tool a&amp;nbsp;couple of years ago that works on a table that contains the from and to XY coordinates and creates the lines between them:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/452166?commentID=452166#comment-452166" title="https://community.esri.com/message/452166?commentID=452166#comment-452166"&gt;https://community.esri.com/message/452166?commentID=452166#comment-452166&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although this would require some pro-processing of the data, it could be done.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 14:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-lines-between-polygons-based-on-polygon/m-p/435914#M944</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-12-17T14:08:59Z</dc:date>
    </item>
  </channel>
</rss>

