13 - Update Cursors - ArcMap Scripting with Python and Arcpy

preview_player
Показать описание
Learn how to use Python and Arcpy with ArcMap

Рекомендации по теме
Комментарии
Автор

These videos are very helpful. Could you please increase the font size of your text in the videos?

christinamccullough
Автор

in the for loop, what does the x stand for and does it need to be defined before hand?

PaytonHartman-he
Автор

Thank you for these tutorials, . I got this run time error, dont know how to fix this, any idea?
import arcpy

points =

with arcpy.da.UpdateCursor(points, ['NAMEALT']) as cursor:
for x in cursor:
print x[0]
x[0] = "WE JUST UPDATED THIS"
cursor.updateRow(x)
print 'We updated this value to {}'.format(x[0])




Traceback (most recent call last):
File "C:/Users/Lenovo/Desktop/Collage/Python/arcpy/update_cursor.py", line 5, in <module>
with arcpy.da.UpdateCursor(points, ['NAMEALT']) as cursor:
RuntimeError: cannot open

kerimmirzeyev
join shbcf.ru