<?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: Spatial correlation of two data sets in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89998#M339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Association... not correlation.&lt;/P&gt;&lt;P&gt;what parameters/variables are used to determine your predicted path?&amp;nbsp; That is the question.&lt;/P&gt;&lt;P&gt;There is a strong 'association' between the actual and predicted path in several areas and not so much in others.&lt;/P&gt;&lt;P&gt;The question becomes, what is in the vicinity of the locations where the paths are similar?&amp;nbsp; What is in the vicinity of where they are not?&lt;/P&gt;&lt;P&gt;What is driving your 'predicted path'.&amp;nbsp; Nothing moves by itself, so how do you determine the locations that form the line.&lt;/P&gt;&lt;P&gt;A lot is missing from your description on how the path is derived and why it moves in the direction that it does forming a similar path and length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2018 00:33:43 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-01-08T00:33:43Z</dc:date>
    <item>
      <title>Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89994#M335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one modelled power-line path that I want to compare statistically with an existing power-line path. What I would like to measure is how the model output correlate spatially with the reality.&amp;nbsp;So, no other variables than the XY-coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89994#M335</guid>
      <dc:creator>FrankHanssen</dc:creator>
      <dc:date>2018-01-07T16:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89995#M336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show the paths you have.&amp;nbsp; Are you looking for deviations of modelled path vs actual path?&amp;nbsp; I suspect this isn't a correlation in the true sense of the word since causation isn't a play here.&lt;/P&gt;&lt;P&gt;There are a number of factors that you could derive including distance differences, directional changes etc, but there is no reason to suspect that the actual path could be used to 'predict' the location of your modelled path since you don't have an independent and a dependent variable as is required by correlation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89995#M336</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-07T16:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89996#M337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan! I am interested to get a measure on how well the model path fit spatially with the actual path. I have derived distance differences and have max-mean-min values. Is it possible to correlate the coordinates?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392306_Untitled.png" style="width: 620px; height: 598px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89996#M337</guid>
      <dc:creator>FrankHanssen</dc:creator>
      <dc:date>2018-01-07T16:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89997#M338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps creating a polygon from both lines and use the area divided by the length of the path to say something about the deviation between the two lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2018 23:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89997#M338</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-01-07T23:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89998#M339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Association... not correlation.&lt;/P&gt;&lt;P&gt;what parameters/variables are used to determine your predicted path?&amp;nbsp; That is the question.&lt;/P&gt;&lt;P&gt;There is a strong 'association' between the actual and predicted path in several areas and not so much in others.&lt;/P&gt;&lt;P&gt;The question becomes, what is in the vicinity of the locations where the paths are similar?&amp;nbsp; What is in the vicinity of where they are not?&lt;/P&gt;&lt;P&gt;What is driving your 'predicted path'.&amp;nbsp; Nothing moves by itself, so how do you determine the locations that form the line.&lt;/P&gt;&lt;P&gt;A lot is missing from your description on how the path is derived and why it moves in the direction that it does forming a similar path and length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 00:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89998#M339</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-08T00:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89999#M340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just wrote some code to see what can be done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code used two featureclasses with the two lines (it extracts the first feature as used the polyline) and it created two output featureclasses. The step_size (line&amp;nbsp;10) defines at what distance the points are extracted from the line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\compareLines\data.gdb\GIS_route'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_real &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\compareLines\data.gdb\Real_route'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\compareLines\data.gdb\dist_gis2real'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\compareLines\data.gdb\dist_real2gis'&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; step_size &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# get lines&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; line_base &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_real&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;next&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; line_compare &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_gis&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;next&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; steps &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;divmod&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;line_base&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; step_size&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_gis&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference

&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_feats &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;steps&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; step_size
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line_base&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;positionAlongLine&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;d&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt_near &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line_compare&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;queryPointAndDistance&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Polyline&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pnt_near&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_feats&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyline&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_feats&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fc_out1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&amp;nbsp;&amp;nbsp;&amp;nbsp; steps &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;divmod&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;line_compare&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; step_size&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_feats &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;steps&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; step_size
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line_compare&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;positionAlongLine&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;d&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt_near &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line_base&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;queryPointAndDistance&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Polyline&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pnt_near&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_feats&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyline&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_feats&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fc_out2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It creates two new featureclasses by projecting lines between points created on one line (based on the step_size) to the nearest point on the other line. This is what is created (using green for short distances and red for high distances):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/392372_pastedImage_1.png" style="width: 620px; height: 359px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the attribute table of one of the results you can run some statistics on the length of the segments being created:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/392374_pastedImage_3.png" style="width: 620px; height: 268px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from analyzing the variation between them, it might be more interesting to understand why the real line does not follow the one calculated in GIS. Are there some variables that were not included? Are there features on the ground that were not considered by the GIS calculation since they may not have been available in the data used for the analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/89999#M340</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-10T23:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/90000#M341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander that is good.... yes, it is what's on the ground that should be of interest/concern for the predictive model,&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 20:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/90000#M341</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-08T20:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/90001#M342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan and Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all your valuable contributions! The modelled line is calculated based on a MCA-generated cost-surface and LCP based on a subset of criterion used in the planning of the original powerline. I have control about all criterion, my main issue was just to get comparison about how well they fitted. I did a similar calculation as you Xander in modelbuilder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 14:02:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/90001#M342</guid>
      <dc:creator>FrankHanssen</dc:creator>
      <dc:date>2018-01-18T14:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial correlation of two data sets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/90002#M343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the thread solved or do you additional questions? If it is solved, can you mark the post that best answered your question as the correct answer? If not, can you indicate what additional questions you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 14:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/spatial-correlation-of-two-data-sets/m-p/90002#M343</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-01-18T14:06:10Z</dc:date>
    </item>
  </channel>
</rss>

