14 - Updating Multiple Fields - ArcMap Scripting with Python and Arcpy

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 18

  • @wj_desmond2252
    @wj_desmond2252 Год назад +1

    2023, those videos are still inspiring tutorials. Good stuff, thanks Franchyze!

    • @Franchyze923
      @Franchyze923  Год назад

      You’re welcome! Glad they are still useful

  • @johnkent8972
    @johnkent8972 3 года назад +4

    These are great videos I just want to add for anyone new to python, its not necessary to use the 2nd 'for' loop with the Updatecursor.
    We can just pass list_field directly.
    The error occurs because list_field is already a list and doesn't need to be put in the list brackets []
    with arcpy.da.UpdateCursor(points, [list_field]) as city_cursor:

    • @abdulrashidhassan7649
      @abdulrashidhassan7649 3 года назад

      please can you explain further

    • @johnkent8972
      @johnkent8972 3 года назад

      @@abdulrashidhassan7649 what part are you having trouble with?

  • @ivamihaylova9104
    @ivamihaylova9104 6 лет назад +3

    Hello Fran, thank you so much for creating these videos! They are very helpful. Since you mention at the end of the video that we can write you suggestions about future videos, here is mine: create a video about arcpy & Python that uses frequently used operations: intersecting, merging, clipping, erasing, reprojecting, calculating some statistics (for example, mean), exporting to Excel.

  • @royapostle
    @royapostle 7 лет назад +7

    dude, these videos were fucking awesome. Helped so much. Thank you!!

  • @margueritjia6451
    @margueritjia6451 7 лет назад +1

    I've just gone through your videos in this list. They are great helpful. ^^

  • @zacharycarter465
    @zacharycarter465 6 лет назад +2

    Really helpful series!!

  • @nguyenvanchanh3900
    @nguyenvanchanh3900 7 лет назад

    these videos were fucking awesome. I really want to Python for Arcgis. Hope that you give a lot Arcgis Scripting with Python

  • @jasonxiao2456
    @jasonxiao2456 5 лет назад

    Great job! Thank you Fran!

  • @ryanhowell3302
    @ryanhowell3302 5 лет назад

    How would you go through and update one field based on another? For example, each row has a longID field and a shortID field, and I want to use the longID field (0000001) to update the null/blank shortID field (001)?

  • @mrnikfal
    @mrnikfal 8 лет назад

    We can use this way too, it is easier :
    import arcpy
    arcpy.env.overwriteOutput = True
    arcpy.env.workspace = r'D:\UNT\GIS\Python\Data'
    points = r'D:\UNT\GIS\Python\Data\PointSample.shp'
    myList = arcpy.ListFields(points)
    for element in myList:
    print element.type
    if element.type == "String":
    with arcpy.da.UpdateCursor(points, [element.name]) as cursor:
    for element1 in cursor:
    if element1[0] == " ":
    element1[0] = "Papppa"
    cursor.updateRow(element1)