Tagged Questions
3
votes
2answers
82 views
Move the cursor backward - opposite of row = rows.next()
I'd appreciate if anyone could please tell me if there is a way to go up one row in python cursor. opposite of row = rows.next()
Thank you!
2
votes
2answers
67 views
Field calculator or update cursor?
I have a feature class in which one field (let's call it "Field_A"), as yet empty, is to be populated by the contents of another field ("Field_B") multiplied by a certain number (I'll call it the ...
2
votes
3answers
103 views
Creating a where clause from user input/Python list
I am trying to perform a query based on values in a Python list. The where clause will then be used in an Update Cursor, so that the rows NOT equal to the values in the list will be deleted.
This is ...
2
votes
1answer
145 views
Am I over-complicating adding and then calculating fields? Suggestions for a better way? (Python)
I'm attempting to re-position a question I asked yesterday here. I am starting to think that the way I wrote my code just isn't the best way. Am I overcomplicating things?
I know for a fact that ...
2
votes
1answer
120 views
Incorrect field name resulted in RuntimeError: ERROR 999999 (Also, better code for adding and calculating fields)
This is the bottom half of my code (and it's been edited somewhat to share publicly). The code works perfectly fine when the fieldList has only three fields in it, but when I populate it with all 108 ...
2
votes
2answers
90 views
Using select by location to update a field in a feature class
I am using Arc 10.1 and I am working on a script that takes a value from a field within one shape file and updates a field in another shape file based on its location. Basically I have smaller parcels ...
2
votes
1answer
74 views
Updating and inserting a field within the same loop
I am working with an empty feature class where I am writing a script to create polylines within the featureclass and attach an associated text value with the polyline.
I am using a for loop as noted ...
1
vote
2answers
134 views
Batch set value/calculate field inside Cursor
I am matching data using a cursor, where one of the final steps is filling in a new attribute, match, with a value calculated during the cursor. This matching is done to an ID field in the original ...
