📅  最后修改于: 2022-03-11 14:47:03.448000             🧑  作者: Mango
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "*")[0] # grab 1st dataframe in map
#df = arcpy.mapping.ListDataFrames(mxd, "Main")[0] # grab dataframe named 'Main'
arcpy.MakeMosaicLayer_management(
'Orthophotos', # input mosaic
'test_mosaic', # output mosaic
'#', # Optional WHERE clause
df.extent # clipping box coordinates
)