|
可以用脚本读取数据框的4个角点重新构面,以下可供参考
mxd = arcpy.mapping.MapDocument("CURRENT")
df =arcpy.mapping.ListDataFrames(mxd)[0]
featureList = []
dfAsFeature = arcpy.Polygon(arcpy.Array([df.extent.lowerLeft, df.extent.lowerRight, df.extent.upperRight, df.extent.upperLeft]),df.spatialReference)
featureList.append(dfAsFeature)
arcpy.CopyFeatures_management(featureList, r"D:\dfAsFeature.shp")
|
|