<?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: Inaccurate Matches in Spatial Join (Precision Problem?) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/inaccurate-matches-in-spatial-join-precision/m-p/83139#M2855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I'm responding to my own thread just for posterity's sake...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was mistaken earlier about the Intersect tool not working.&amp;nbsp; Well, at least it wasn't working with the way I had things configured earlier.&amp;nbsp; All I ended up doing was adjusting the XY Resolution and Tolerance to 0.0001 mm in the geoprocessing settings from within ArcMap.&amp;nbsp; Once I did that, both approaches using the Spatial Join and Intersect tools worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Such a simple solution to what seemed to be an aggravating problem...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 17:45:02 GMT</pubDate>
    <dc:creator>KaelDowdy</dc:creator>
    <dc:date>2013-06-06T17:45:02Z</dc:date>
    <item>
      <title>Inaccurate Matches in Spatial Join (Precision Problem?)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/inaccurate-matches-in-spatial-join-precision/m-p/83138#M2854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two line features for which I need to determine if an end point on one line feature (which I'll call a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;leader line&lt;/SPAN&gt;&lt;SPAN&gt;) touches anywhere on the other line feature (a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;pipeline&lt;/SPAN&gt;&lt;SPAN&gt; system).&amp;nbsp; In Model Builder, I run the following steps:&lt;/SPAN&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt; Run the &lt;SPAN style="font-style:italic;"&gt;Feature Vertices to Points&lt;/SPAN&gt; tool against the leader line to create a vertex on each end point of this line feature.&amp;nbsp; That way, I have some geometry bound to the leader line's end points in order to perform a spatial join in a subsequent step.&amp;nbsp; The output feature class for this step is called &lt;SPAN style="font-style:italic;"&gt;Test Points&lt;/SPAN&gt;.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Run the &lt;SPAN style="font-style:italic;"&gt;Erase&lt;/SPAN&gt; tool to remove one of the end point vertices from the newly created &lt;SPAN style="font-style:italic;"&gt;Test Points&lt;/SPAN&gt; feature class in order to be left with a single vertex (test point) touching a pipeline.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Run the &lt;SPAN style="font-style:italic;"&gt;Spatial Join&lt;/SPAN&gt; tool to determine which test points join up to a particular pipeline.&amp;nbsp; I use the &lt;SPAN style="font-style:italic;"&gt;Test Points&lt;/SPAN&gt; feature class as the Target Feature and the &lt;SPAN style="font-style:italic;"&gt;Pipelines&lt;/SPAN&gt; feature class as the Join Feature.&amp;nbsp; My output feature class is &lt;SPAN style="font-style:italic;"&gt;Test Point Pipelines&lt;/SPAN&gt;.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;In most cases, the spatial join tool yields correct results when determining if a particular test point joins up to a particular pipeline.&amp;nbsp; However, I have several thousand instances where I'm getting a false positive -- meaning the tool believes a test point vertex "touches" a particular pipeline line feature, but if you zoom in very tight into the feature, you can see it does not touch.&amp;nbsp; The difference might be just 0.5 mm off or less, but still, it does not technically touch.&amp;nbsp; I can also turn off my Test Points feature class and just turn on my original leader line feature, and I can see that the end point comes just within a few tenths or hundredths of a mm from the pipeline line feature.&amp;nbsp; So, I concluded that it's not my Feature Vertices to Points step which is causing the problem, but rather during the Spatial Join step whereby I'm getting a false hit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first thought was that there was some type of tolerance or precision level set which tells the tool something to the effect of, &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"If the target feature comes &lt;SPAN style="text-decoration:underline;"&gt;within x mm&lt;/SPAN&gt; of the join feature, then include it anyway..."&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; However, I have not found a setting in Model Builder or ArcGIS where I can specify whether or not to include joins if they are just "close"; I want them to match 100% perfectly even if I'm zoomed into a map scale of 1:0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;Two Examples of False Positive Hits from Spatial Join&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25007[/ATTACH]&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex 1: Test Point .5 mm just before pipeline&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25008[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex 2: Test Point .03 mm just past the pipeline&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All feature classes are using the same coordinate system -- NAD83 State Plane Millimeter -- so I don't think that's the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, does anyone have any thoughts as to why I'm getting these false positive joins on my Spatial Join?&amp;nbsp; I haven't found any common thread on the ones which are getting false positive matches, but I'm looking into it.&amp;nbsp; Perhaps I need to use a different tool other than the Spatial Join so it gives me the highest level of precision?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm relatively new to using Esri ArcMap, so hopefully my terminology and explanation of what I'm trying to do makes sense...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&amp;nbsp; Please let me know if you'd like any more info into what I'm trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Update 1&lt;/STRONG&gt;&lt;SPAN&gt;:&amp;nbsp; I'm going to investigate the Match Option parameter.&amp;nbsp; I'm using the default of INTERSECT, but maybe there's another option that will give me a "tighter" match of a point feature to a line feature. Think I'm on the right track?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Update &lt;/STRONG&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;SPAN&gt;:&amp;nbsp; most of the Match Options are not applicable to the types of feature classes I'm joining, and of the ones that do work, none of them yielded different results.&amp;nbsp; However, I did try the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Intersect &lt;/SPAN&gt;&lt;SPAN&gt;tool instead of the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Spatial Join&lt;/SPAN&gt;&lt;SPAN&gt; tool and changed the XY Tolerance to 0.0001 mm.&amp;nbsp; In a small unit test, the feature class that shouldn't be part of the match did not show up!&amp;nbsp; Hopefully, I don't have any situations where the lines are &amp;lt; 0.001 mm away from one another, but this might be the ticket!&amp;nbsp; I just need to do more testing to make sure this is the way to go and then change my model to use the Intersect tool for this process...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Update &lt;/STRONG&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;SPAN&gt;:&amp;nbsp; so, after more unit testing, it appears that the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Intersect&lt;/SPAN&gt;&lt;SPAN&gt; tool did not work 100% of the time.&amp;nbsp; I'm still getting cases where the tool is saying I'm getting a hit or join, but when I zoom in really tight, my leader line is not touching the pipeline.&amp;nbsp; :mad:&amp;nbsp; It does yield a higher percentage than using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Spatial Join&lt;/SPAN&gt;&lt;SPAN&gt; but I'm still not getting a 100% accurate match.&amp;nbsp; Hopefully someone else has run into similar problems.&amp;nbsp; At this point, I'm going to investigate other tools or approaches...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 14:02:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/inaccurate-matches-in-spatial-join-precision/m-p/83138#M2854</guid>
      <dc:creator>KaelDowdy</dc:creator>
      <dc:date>2013-06-05T14:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inaccurate Matches in Spatial Join (Precision Problem?)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/inaccurate-matches-in-spatial-join-precision/m-p/83139#M2855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I'm responding to my own thread just for posterity's sake...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was mistaken earlier about the Intersect tool not working.&amp;nbsp; Well, at least it wasn't working with the way I had things configured earlier.&amp;nbsp; All I ended up doing was adjusting the XY Resolution and Tolerance to 0.0001 mm in the geoprocessing settings from within ArcMap.&amp;nbsp; Once I did that, both approaches using the Spatial Join and Intersect tools worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Such a simple solution to what seemed to be an aggravating problem...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 17:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/inaccurate-matches-in-spatial-join-precision/m-p/83139#M2855</guid>
      <dc:creator>KaelDowdy</dc:creator>
      <dc:date>2013-06-06T17:45:02Z</dc:date>
    </item>
  </channel>
</rss>

