Wednesday, 15 July 2015

Using Spatial join for many to one relates in ArcGIS for Desktop?


I'm trying to do a spatial join that takes the attributes of multiple polygons and applies them to a single polygon in another layer. The data is currently in a geodatabase, but can be exported to shp if needed.


In the example below I want to end up with polygon 1 also having the attributes of the features that intersect it so A, B and C. The output doesn't have to remain as a single feature so the output layer would have features 1A, 1B and 1C.


Many to one join



I am using ArcGIS 10.1 for Desktop.


To clarify, the output would need to maintain the geometry of 1 for all 3 output features so that they have the same area and 3 different sets of attributes rather than splitting the feature into 3 parts.



Answer



Use ArcGIS Spatial Join Tool with these settings:



  • target_features = layer1

  • join_features = layerABC

  • join_operation = JOIN_ONE_TO_MANY


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...