Python嵌套For循环遍历ESRI List

时间:2014-09-22 20:10:19

标签: python for-loop

很抱歉提出这样一个基本问题,但是:

我已经多次尝试迭代嵌套的Python循环但没有成功。目标是查看每个要素数据集(大约25个)并提取所有要素类,然后连接如下:Buildings / structures_existing_area等。

这是我做过的最好的,但它不起作用。

import arcpy

gdb = "U:/GeoDatabases/Bragg_MASTER_FileGeoDataBase10.gdb" 
arcpy.env.workspace = gdb

def listFcsInGDB():
    for fds in arcpy.ListDatasets('','feature') + ['']:
        for fc in arcpy.ListFeatureClasses('','',fds):
            print (fds +" / "+fc)

提前致谢。 斯泰西

0 个答案:

没有答案
相关问题