手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

ARCGIS-Python脚本中相交函数的写法

时间:2024-10-12 11:51:50

1、首先,打开arcgis软件。

ARCGIS-Python脚本中相交函数的写法

2、然后,打开脚本编辑。

ARCGIS-Python脚本中相交函数的写法

3、根据该函数的解释,就应该是:arcpy.Intersect_analysis(inFeatures, intersectOutput)输入,输出。但其格式不对。

ARCGIS-Python脚本中相交函数的写法

4、再看参考arcpy.Intersect_analysis(inFeatures, intersectOutput)参考是这个样子,然后我们根据参考修改代码。

ARCGIS-Python脚本中相交函数的写法

5、还通过Python独瘦配溧窗口也试了,但Python窗口使用arcpy.Intersect_analysis(inFeatures, intersectOutput)这种语法是对的。

ARCGIS-Python脚本中相交函数的写法

6、最后,以数组的方式去解决问题,单个兔脒巛钒图层相交时脚本:arcpy.Intersect_analysis([inFeatures], intersectOutput)多个图层相交时,或者数组中添加掬研疔缎图层,或者这样写:arcpy.Intersect_analysis("inFeatures;inFeatures1", intersectOutput)在此,分享给大家,避免大家走了绕路。

ARCGIS-Python脚本中相交函数的写法
© 手抄报圈