Copy fc

397
2
Jump to solution
04-03-2021 10:32 PM
Mick
by
New Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
JeffK
by MVP Regular Contributor
MVP Regular Contributor

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?

View solution in original post

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

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


... sort of retired...
0 Kudos
JeffK
by MVP Regular Contributor
MVP Regular Contributor

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?

0 Kudos