I am very ill at ease with Python. I am working on ArcGIS 10.3. I am working on a table in a gdb.
I want to fill an empty field of this table with an expression (words) according to the value of a second field in the same table.
In my case, if my second field contain the word "roadway", I want to fill the empty field cells councerned by this expression "route à deux chaussées".I know that accents are not good in programming but I need to fill my field with (french...). Thanks for help
My script is below:
import arcpyfc = "D:/TESTS_TOP25/POUR_SDC/ROUTIER_TRAITEMENT/DONNEES.gdb"#field'snamefield1 = "NATURE"field2 = "symbology"cursor = arcpy.UpdateCursor(fc)for row in cursor: if field1 == "roadway" field2 == "route à deux chaussée" cursor.updateRow(row)
أكثر...
I want to fill an empty field of this table with an expression (words) according to the value of a second field in the same table.
In my case, if my second field contain the word "roadway", I want to fill the empty field cells councerned by this expression "route à deux chaussées".I know that accents are not good in programming but I need to fill my field with (french...). Thanks for help
My script is below:
import arcpyfc = "D:/TESTS_TOP25/POUR_SDC/ROUTIER_TRAITEMENT/DONNEES.gdb"#field'snamefield1 = "NATURE"field2 = "symbology"cursor = arcpy.UpdateCursor(fc)for row in cursor: if field1 == "roadway" field2 == "route à deux chaussée" cursor.updateRow(row)
أكثر...