<?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 Calculating spatial overlap percentage between polylines of a shapefile in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/calculating-spatial-overlap-percentage-between/m-p/525336#M29828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: banbar86&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a shape file consisting of N polylines, and some of these lines spatially overlap. What I need to do is to determine the percentage of spatial overlap between these N poylines. The output should look like an M = N*N matrix, and each matrix element corresponds to the percentage of spatial overlap between the corresponding polylines. The percentage of spatial overlap is calculated as: length of overlapping polyline / total length of the polyline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in the attached example there are two polylines, A and B, which spatially overlap as shown in red circle. Suppose that the length of A is 3x and B is 4x, and the length of overlapping poyline is x. Then, matrix element M(A,B) = x / 3x = 0.3, and M(B,A) = x / 4x = 0.25. Since A and B do not spatially overlap with other polylines remaining values of row A and B should be all zero.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I checked &lt;/SPAN&gt;&lt;A href="http://www.spatialecology.com/gme/index.htm"&gt;GME &lt;/A&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=How+Intersect+%28Analysis%29+works"&gt;intersection tool&lt;/A&gt;&lt;SPAN&gt; within ArcGIS, but could not figure out the solution (i.e. GME does not have such a function, and with intersection I cannot keep the percentage overlap information). Any help will be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Berk&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20881[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Jan 2013 21:05:16 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-01-19T21:05:16Z</dc:date>
    <item>
      <title>Calculating spatial overlap percentage between polylines of a shapefile</title>
      <link>https://community.esri.com/t5/data-management-questions/calculating-spatial-overlap-percentage-between/m-p/525336#M29828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: banbar86&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a shape file consisting of N polylines, and some of these lines spatially overlap. What I need to do is to determine the percentage of spatial overlap between these N poylines. The output should look like an M = N*N matrix, and each matrix element corresponds to the percentage of spatial overlap between the corresponding polylines. The percentage of spatial overlap is calculated as: length of overlapping polyline / total length of the polyline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in the attached example there are two polylines, A and B, which spatially overlap as shown in red circle. Suppose that the length of A is 3x and B is 4x, and the length of overlapping poyline is x. Then, matrix element M(A,B) = x / 3x = 0.3, and M(B,A) = x / 4x = 0.25. Since A and B do not spatially overlap with other polylines remaining values of row A and B should be all zero.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I checked &lt;/SPAN&gt;&lt;A href="http://www.spatialecology.com/gme/index.htm"&gt;GME &lt;/A&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=How+Intersect+%28Analysis%29+works"&gt;intersection tool&lt;/A&gt;&lt;SPAN&gt; within ArcGIS, but could not figure out the solution (i.e. GME does not have such a function, and with intersection I cannot keep the percentage overlap information). Any help will be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Berk&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20881[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2013 21:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/calculating-spatial-overlap-percentage-between/m-p/525336#M29828</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-19T21:05:16Z</dc:date>
    </item>
  </channel>
</rss>

