Select to view content in your preferred language

Update cursor help

339
0
04-07-2010 12:42 PM
ChrisMathers
Deactivated User
I am trying to add data to some fields in my parcels layer (flood zone, tax district, etc.) and want to run through the parcels using an update cursor looking for what polygons it intersects in other layers and placing that data into the appropriate field.

I have been doing this with a model that: 1) converts the parcels to centroids, 2) spatially join (intersect) with at feature class (such as storm surge zone), 3) join the new file back to the parcels feature class, 4) calculate the values over, 5) remove the join, 6) then delete the file created by the spatial join.

That appears in the model 17 times, once for each feature class. I just started with python but I am pretty sure that I can streamline that process. Its long and needlessly cumbersome. I definitly want to keep using centroids somehow because intersect will pick up the polygons that touch the border of a parcel even if they do not extend into it. That means I can get parcels with multiple zonings or future land use codes.

Any ideas?
0 Kudos
0 Replies