Add Unique ID from one polygon layer to another based on spatial relationship

2119
8
Jump to solution
05-17-2017 10:51 PM
JensJensen
New Contributor II

Hello

I'm have two polygon layers, one have been dissolved, the other is the original data with a lot of smaller polygons in it. The polygon layers overlap each other.

Each of the dissolved polygons have an unique id, that I would like to add to all the smaller polygons, so I can see where the smaller polygons belong.

I'm thinking some kind of join or similar based on the spatial relationship (overlap), but I can't get it too work. Tried adding a concept illustration:

Input:Wanted output
Dissolved polygon IDSizeSmall polygon sizeSmall polygon ID
44791014479
14479
14479
14479
14479
14479
14479
14479
14479
1

4479

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

Check the following steps

1. Convert the small polygons to points layer Feature To Point—Help | ArcGIS Desktop 

2. Do a Spatial Join to migrate the data from the Dissolved Polygons to the Points.

3. Do a Spatial Join again to migrate the data from points to smaller polygons.

4. Delete the unwanted fields from the layer with smaller polygons. Delete Field—Help | ArcGIS Desktop 



Think Location

View solution in original post

8 Replies
FC_Basson
MVP Regular Contributor

You should be able to accomplish this with a Spatial Join: Spatial Join—Help | ArcGIS for Desktop 

JensJensen
New Contributor II

Had to do a few different version of this, but got it to work, thanks!

I've added an extra credits question to Jayantas comment, feel free to weigh in, if you know the answer

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Check the following steps

1. Convert the small polygons to points layer Feature To Point—Help | ArcGIS Desktop 

2. Do a Spatial Join to migrate the data from the Dissolved Polygons to the Points.

3. Do a Spatial Join again to migrate the data from points to smaller polygons.

4. Delete the unwanted fields from the layer with smaller polygons. Delete Field—Help | ArcGIS Desktop 



Think Location
JensJensen
New Contributor II

Thank you, both of the suggestion works. Much appreciated.

Another question a bit different, can you convert a raster too vector, without it grouping raster cells, so that basically each raster cell becomes a polygon?

Input rasterUnwanted output vectorWanted output in vector
No data1No dataNo data
   1
No dataNo data    1No data
       31     8     3     8    3    1   8
       22    4        2      4    2    2   4
0 Kudos
JayantaPoddar
MVP Esteemed Contributor
JensJensen
New Contributor II

That would work perfectly, just one little hiccup I only have an ArcGIS Standard license with Spatial Analyst.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Alright.

While creating Fishnet, keep Geometry Type as Polygon.

Then do a Spatial Join to migrate the values of points to the polygons.

*No need to do Feature to Polygon step



Think Location
JensJensen
New Contributor II

How did I miss that I could create polygons with the fishnet. Thank you very much, exactly what I needed!