arcpy图层相关操作

import arcpy
import os
def main():
    mxd = arcpy.mapping.MapDocument('current')  #获取当前打开MXD
    df = arcpy.mapping.ListDataFrames(mxd, "图层")[0]  #获取全部图层组
   lyr= arcpy.mapping.ListLayers(mxd,"",df): #获取图层组全部图层

 

posted @ 2018-12-26 13:13  别动我的面包  阅读(2112)  评论(0编辑  收藏  举报