I'm trying to conduct a spatial match on two shape files which both consist of the exact same points. Unfortunately there isn't another attribute that can be used to join the two files together, so the only commonality is the spatial object. I tried there different spatial match options (e.g. where target intersects/contains/within/touches universe, etc.), but it doesn't produce any results. Is there any way to spatially match the exact same points?
Solved! Go to Solution.
Hi @janellel,
Not sure if this works for your use case, but you can set spatial objects equal to each other, which will return a true (-1) or false (0) if they match. Simple workflow showing this with trade areas attached.
fyi - you can use find nearest to match two spatial points which are equal to each other (as long as you allow zero distance matches)... What is your end goal? You can also use the unique tool with spatial points - like to compare borders between states.
Hi @janellel
what you described is the Process tool which tests the shape’s relative position to each other.
what you need is to see if two spatial objects are identical. This can be done with the = operator. E.g.
<spatObj A> = <spatObj B>
Dawn
This is the easiest and most optimized way to compare two spatial objects to check if they are same. Thanks @T_Willins !
An alternate way is to generate the X and Y coordinates of the centroid of the polygons and compare them.