当前位置: 首页 > news >正文

python调用arcgis功能一例

python调用arcgis功能一例
执行方法:

D:\data\python>python test_Select.py

window11下环境变量设置
此电脑/属性/系统/高级系统设置/高级/环境变量/path
path中添加全局目录:C:\Python27\ArcGIS10.4

test_Select.py脚本内容

# Name: Select_Example2.py
# Description: Select roads of Class 4 from major roads tin the gnatcatcher habitat study area# Import system modules
import arcpy
from arcpy import env# Set workspace
env.workspace = "D:\data\python\shp"# Set local variables
in_features = "DLTB2021.shp"
where_clause = '"DLBM" = \'0101\''# create gdb file
arcpy.CreateFileGDB_management("D:/data/python/shp/output","dltb.gdb")out_feature_class = "D:/data/python/shp/output/dltb.gdb/dltb_0101"# Execute Select
arcpy.Select_analysis(in_features, out_feature_class, where_clause)# execute .py script out result python test_Select.py

—the—end—

http://www.lryc.cn/news/95535.html

相关文章:

  • Spring MVC 是什么?
  • Rust操作MySQL
  • JAVA面试总结-Redis篇章(二)——缓存击穿
  • Spring相关知识点
  • Nginx专题--反向代理(未完成)
  • 什么是搜索引擎?2023 年搜索引擎如何运作?
  • Spring系列一:spring的安装与使用
  • Ubuntu--科研工具系列
  • 【压测指南|压力测试核心性能指标及行业标准】
  • spark-submit --files
  • 应该选云服务器还是物理服务器
  • 【iOS】动态链接器dyld
  • RocketMQ集成Springboot --Chapter1
  • 【Unity3D日常开发】Unity3D中比较string字符串的常用方法
  • vue3+ts+element-plus 之使用node.js对接mysql进行表格数据展示
  • 华为eNSP:isis配置跨区域路由
  • IUPAC和SMILES的相互转换
  • 逻辑回归概述
  • React 框架下自己写一个braft编辑器,然后将编辑器内容展示在网页端
  • 基于DNN深度学习网络的OFDM+QPSK信号检测算法matlab仿真
  • 学生管理系统-05封装选项卡
  • 关于一些C++、Qt、Python方面的术语
  • k8s中强制删除pv
  • 60寸透明屏的透明度怎么样?
  • Python:使用openpyxl读取Excel文件转为json数据
  • 在Microsoft Excel中如何快速合并表格
  • 【RS】基于规则的面向对象分类
  • SWF格式视频怎么转换成AVI格式?简单的转换方法分享
  • Hive数据仓库
  • 公网访问的Linux CentOS本地Web站点搭建指南