1,第一步打开arcgis 将图形加载进去

arcgis python 保存当前窗口图形为jpg

 

第二步,将要保存的图形调到合适的比例尺,然后点击下面按钮

arcgis python 保存当前窗口图形为jpg

第三步,将写好的python 语句放到里面去:

import arcpy
mxd = arcpy.mapping.MapDocument("current")
for df in arcpy.mapping.ListDataFrames(mxd):
    df.rotation = 0
    df.scale = 62500#当前地图比例尺
    arcpy.AddMessage(df.name)
    outFile ="d:\\" + df.name + ".jpg"
    arcpy.AddMessage(outFile)
    arcpy.mapping.ExportToJPEG(mxd, outFile, df)
del mxd

然后enter键,最后生成的图片如下:

arcgis python 保存当前窗口图形为jpg

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案