0
点赞
收藏
分享

微信扫一扫

python对接INVEST和ARCGIS


Invest和Arcgis与python联系

  • ​​安装python包方法​​
  • ​​Invest和python​​
  • ​​安装invest的依赖包​​
  • ​​安装invest的python包​​
  • ​​安装invest的可视化页面​​
  • ​​Arcgis和python​​
  • ​​下载Arcgis​​
  • ​​Arcgis和python交互​​
  • ​​对于数据进行批处理​​

安装python包方法

先来熟悉一下python安装包的三种方法

  • 终端输入pip install 库名(最简单也是最容易出错,下载速度慢),指定版本为==版本号
  • 镜像下载:pip install’库名’ -i https://pypi.tuna.tsinghua.deu.cn/simole/(速度较快,仅此而已)
  • whl文件安装 pip install …whl

Invest和python

安装invest的依赖包

先来看看invest模型的和python的对接
要求:

  • python3.6版本及以上
  • 下载必要的依赖安装包

GDAL> = 3.1.2 
Pyro4 == 4.77
pandas> = 1.0
numpy> = 1.11.0,!= 1.16.0
Rtree> = 0.8.2,!= 0.9.1
Shapely> = 1.7.1,<2.0.0
scipy > = 0.16.1,<1.5.0
pygeoprocessing> = 2.1.1
taskgraph [niced_processes]> = 0.10.2
psutil> = 5.6.6
chardet> = 3.0.4
xlrd> = 1.2.0
xlwt

安装invest的python包

安装invest的python包
​​​invest的whl文件下载​​

pip install natcap.invest-3.9.0-cp38-cp38m-win_amd64.whl

python对接INVEST和ARCGIS_python


安装完成

安装invest的可视化页面

基于安装了pyqt包的基础上进行安装

pip install natcap.invest[ui]

打开invest页面

invest run carbon

python对接INVEST和ARCGIS_依赖包_02


invest连接安装完毕

其使用可参考

​​invest官方手册API​​​​各种模型使用参考​​

​​在Windows下的批处理​​

Arcgis和python

下载Arcgis

下载可见:​​Arcgis下载链接​​ 提取码:grxw

Arcgis和python交互

安装python2.7

​​python操作arcgis基本操作​​

对于数据进行批处理

直接调用arcpy代码即可


举报

相关推荐

0 条评论