Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions