Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started