Could you tell me how to copy (the information from one field) from one feature class to another feature class with application arcpy.SelectLayerByLocation with spatial join WITHIN? Any examples will be okay.
Solved! Go to Solution.
Hi Mick,
After you use the select by location tool, to copy the information from one field from the feature class to another feature class you will want to use the Append tool. If the destination FC has more than one field, you will want to only map that one field you want to copy. If the destination FC only has that one field that you want to copy, then you don't need the field mapping. What do the FC's fields look like and which field do you want to copy?
Not sure which one
Select By Location: Select based on spatial relationship within the layer—ArcGIS Pro | Documentation
most likely
Select Layer By Location (Data Management)—ArcGIS Pro | Documentation
with the overlap type of
WITHIN —The features in the input layer will be selected if they are within a selecting feature.
code samples are at the bottom of the last link
Hi Mick,
After you use the select by location tool, to copy the information from one field from the feature class to another feature class you will want to use the Append tool. If the destination FC has more than one field, you will want to only map that one field you want to copy. If the destination FC only has that one field that you want to copy, then you don't need the field mapping. What do the FC's fields look like and which field do you want to copy?