Question: Need a fix with this python3.xx arcgis coding you can generate your own geodatabase for testing print names and alias names of fields whose name

Need a fix with this python3.xx arcgis coding you can generate your own geodatabase for testing

Need a fix with this python3.xx arcgis coding you can generate your

print names and alias names of fields whose name begins with "L" from the feature class Street_Centerlines in the file geodatabase City of Oleander.gdb. You can use ListFields(dataset, "L*") function to list fields in the feature class. import arcpy import os from arcpy import env arcpy.env.workspace = "C:/Users/bcolli24/Desktop/Lab4/City of Oleander.gdb" fclist = arcpy. ListFeatureclasses() for fc in fclist: fcdesc = arcpy.Describe (fc) if fcdesc.name == 'Street_Centerlines': for f in arcpy.Describe(ListFields(fc,"L*", 'All')): print(f.name) print(f.aliasname) NameError Traceback (most recent call last) in fcdesc = arcpy. Describe(fc) 8 if fcdesc.name == 'Street_Centerlines': ----> 9 for f in arcpy. Describe(ListFields (fc, "L*', 'All')): 10 print(f.name) 11 print(f.aliasname) NameError: name 'ListFields' is not defined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!