Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to assign a value to a field of a polygon layer based on the value of a field on another polygon layer, using a spatial query.

My first polygon layer contains buildings and the second contains administrative boundaries. I want to assign the administrative area code based on which administrative area polygon the building is completly contained in.

So, on my building layer I've a field named "AreaCode" that I want to update with the Area code value from the Administrative Boundaries layer.

I want to do it using the program interface if possible and not by coding a script or macro. Otherwise, does exist an external tool/plugin for ArcGIS that can do this?

share|improve this question
up vote 3 down vote accepted

What you need is a Spatial Join.

There are two types of spatial Join. One is a Geoprocessing tool. Another appears when you right click a Layer in ArcMap and go to Join.

Both are very similar, but there are a few differences in them. You should try both of them out.

share|improve this answer
Yes, I know, but anyway that tools don't update the field on my first layer. They will only make a join between the 2 layers and then you can save it as a new one. Since there are thousands of polygons to process, I'd like to make the whole process smarter and maybe quicker, without creating the new layer and then update it manually deleting the fields that I don't need. – Cheshire Cat Apr 17 '13 at 9:12
AFAIK, this is the only tool in ArcGIS that will do it for you. If you want to update your existing Layer, you'll have to write some custom code, or use a spatial database. – Devdatta Tengshe Apr 17 '13 at 9:40
OK. Thank you anyway! – Cheshire Cat Apr 17 '13 at 9:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.