之前明明上传了CMD的图片,里面有语句,,居然不见了
1.打开QGIS,页面打开状态是我们要保存的图片的样子,然后关掉QGIS。
2,打开系统运行CMD,将路径转到QGIS安装的文件夹,并有快捷方式的那个文件bin,输入以下语句:
qgis --project flowmap2.qgs --snapshot image.png --width 1000 --height 600 -- extent xmin,ymin,xmax,ymax
参数含义:
[--snapshot filename] emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height] height of snapshot to emit
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax] set initial map extent
运行,QGIS会打开,然后自动保存图片最后关掉,在这个文件夹就可以找到保存下来的图片,directed.tif,图片也可以设置成其他不同的格式,png.bmp等等