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

 时间:2026-02-14 18:53:52

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脚本中相交函数的写法

  • ArcGIS抽稀线要素节点(一)
  • arcmap如何将弧处理成折线段
  • ArcGIS:不规则矢量多边形裁切栅格数据方法比较
  • arcgis软件arcmap中mdb如何转shp
  • 如何下载行政地名(矢量数据)
  • 热门搜索
    艾滋病手抄报 春天的手抄报图片 安全教育手抄报图片简单又漂亮 科普手抄报图片 童话手抄报 关于疫情的手抄报 禁毒手抄报内容写什么 文明手抄报内容 关于消防的手抄报 法律手抄报