Listing File Classess and Geometry Types from a filelist.txt in Python in ArcGIS

المشرف العام

Administrator
طاقم الإدارة
I have a filelist.txt containing directories of layer files (.lyr) and I want to list File Classes and Geometry Types for these files. I am only a beginner in Python, so I don't really know how to do it. All I've done so far is here:

>>> import arcpy >>> import os >>> os.chdir("c:\\temp") >>> with open('filelist.txt', 'r') as f: ... for layer_name in f: ... print(layer_name) Version of ArcCatalog is 10.0.



أكثر...
 
أعلى