Select to view content in your preferred language

HOW TO GET field value FROM selected features INTO field of a different feature class

2346
1
12-08-2011 06:59 AM
AlexGray
Deactivated User
Okay, so.. I created this model to:

  1. select by location of one feature class to another.

  2. iterate through the selected features of the second feature class

  3. obtain the value from a field

  4. calculate the field in the selecting feature class with the value from the selected feature class

Problem:

  1. Iterator goes through each selected row to obtain the value

  2. There are 34000 rows selected

  3. A calculation is being done as each row value is found

  4. The process it taking forever

  5. It would be faster to just do a spatial join in ArcMap

  6. Then calculate the field I want the values in

Solution:
I am looking for some solution that would be using Modelbuilder.
Any help would be appreciated.
0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor
Alex,

May be I'm misunderstanding the models logic but I have a question? I'm assuming inputs Address2 and Select Features:Address are the same layer (may be a point layer)? You do a query selection on this and use this selection to select the parcels. Then you use an iterator which is grouping by recnum. Is recnum unique within the selection? If so then with each iteration you are writing recnum to the selection in the address layer and this I guessing is overwriting the value again? If this model is allowed to run to completion is the value written into Adress the very last recnum?

Duncan
0 Kudos