Select to view content in your preferred language

Label a point with the polygon it is inside of

1315
6
Jump to solution
07-21-2022 10:28 AM
NateFuller
Emerging Contributor

Hello, I am editing an invasive species map in ArcGIS Pro and was trying to essentially have each invasive plant sighting (represented by a point) labeled with which management unit it falls into (represented by a polygon). There are already hundreds of invasives added to the map so assigning the units manually is not feasible so I was hoping for there to be a way that ArcGIS Pro could do this automatically. The spatial join tool tells me how many of the invasives are in a given unit so I imagine the system must have the capability to tell me which unit an individual plant is in. Thank you. 

0 Kudos
1 Solution

Accepted Solutions
AdrianWelsh
MVP Honored Contributor

When you spatial join two layers together, you get added attributes to your new table. At the front of the table you will see a join count and other joining variables. At the end of the table (scroll all the way past the original attributes), you should see your new attributes of the new fields that just got joined.

As of ArcGIS Pro 3.0, these spatial joins now behave like regular joins where they are not permanent until you export them. Do you see all the rest of your join fields at the end of your table?

View solution in original post

0 Kudos
6 Replies
AdrianWelsh
MVP Honored Contributor

Hi Nate, I would imagine that if your invasive species point sits on top of a management unit polygon, then Spatial Join should bring across that attribute of which polygon unit it is in. Is that not happening? Then you should be able to label from that management unit polygon attribute. 

0 Kudos
NateFuller
Emerging Contributor

So in the attribute table of the polygon, I can see how many invasive species points lie in it. However, I dont see anything in the attribute table of the invasive species point saying which management unit polygon it falls into. Do I have to call this attribute somehow?

0 Kudos
AdrianWelsh
MVP Honored Contributor

When you spatial join two layers together, you get added attributes to your new table. At the front of the table you will see a join count and other joining variables. At the end of the table (scroll all the way past the original attributes), you should see your new attributes of the new fields that just got joined.

As of ArcGIS Pro 3.0, these spatial joins now behave like regular joins where they are not permanent until you export them. Do you see all the rest of your join fields at the end of your table?

0 Kudos
NateFuller
Emerging Contributor

Okay so I might be doing something dumb here, but I only see the attributes for the first of the new points that got joined with the polygon (I'll attach the screenshot). Would exporting the tables or the spatial join itself make a difference? Thank you for the help. 

0 Kudos
NateFuller
Emerging Contributor

Nevermind, I figured out the problem. I accidentally had set the spatial join as one to one instead of one to many.

0 Kudos
KenBuja
MVP Esteemed Contributor

You could create a "Management Area" field in the point file and use Arcade to calculate it. It would look something like this

var fs = FeatureSetByName($map, 'The polygon layer name');
var features = Intersects(fs, $feature);
var feat = First(features);
iif (feat != null, feat.NAME, ''); //use appropriate field name
0 Kudos