Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to spatial match exact points

janellel
5 - Atom

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?

4 REPLIES 4
T_Willins
14 - Magnetar
14 - Magnetar

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.

apathetichell
19 - Altair

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.

DawnDuong
13 - Pulsar
13 - Pulsar

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 

rohityaman
8 - Asteroid

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. 

 

rohityaman_0-1687135283905.png

 

 

Labels