SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Python Scripting for
ArcGIS
ZHONG Teng
Sep 12, 2013
山顶点提取
Automatic
Model Builder
BUT
 模型参数过多
 路径设置繁琐
 不能自定义某些特定功能
Why Scripting
解决空间数据处理的复杂、费时和
重复性等问题,达到批量、自动数
据处理的目的
有效整合利用ArcGIS软件自带工具,
以及数据存储、可视化及输出等功
能
相比C++, .NET等基于ArcObjects
的编程更简单方便
Why Python
ESRI支持并大力推荐
语法简单易用,适合初学者
资源丰富
http://arcscripts.esri.com/
http://arcscripts.esri.com/details.asp?dbid=15999
Python Scripting的两种使用方
式
 基于窗口的方式 (Python window)
 基于工具的方式 (Use scripts as tools)
基于窗口的方式
基于窗口的方式
基于窗口的方式
CTRL+ENTER
ENTER twice
基于窗口的方式
基于工具的方式
基于工具的方式
基于工具的方式
基于工具的方式
基于工具的方式
基于工具的方式
基于工具的方式
基于工具的方式
基于工具的方式
Functions of Python Scripting
in ArcGIS
处理属性表数据(Attributes)
处理几何数据(Geometries)
处理栅格数据(Rasters)
处理属性表数据(Attributes)
通过游标(Cursor)来处理数据
• Search
• Insert
• Update
Cursor Explanation
arcpy.InsertCursor(dataset, {spatial_reference}) Inserts rows
arcpy.SearchCursor(dataset, {where_clause},
{spatial_reference}, {fields}, {sort_fields})
Read-only
access
arcpy.UpdateCursor(dataset, {where_clause},
{spatial_reference}, {fields}, {sort_fields})
Updates or
deletes rows
处理属性表数据(Attributes)
处理几何数据(Geometries)
Read Geometry
Write Geometry
Read Geometry
Read Geometry
Write Geometry
处理栅格数据(Rasters)
处理栅格数据(Rasters)
有用的资源(Useful Resources)
 Reference Books
Paul A. Zandbergen, Python Scripting for ArcGIS, 2013,
ESRI Press
 Websites
http://arcscripts.esri.com/ (You can download scripts
here)
http://resources.arcgis.com/en/help/main/10.1/index.ht
ml (ArcGIS help)

Weitere ähnliche Inhalte

Andere mochten auch

Automation in ArcGIS using Arcpy
Automation in ArcGIS using ArcpyAutomation in ArcGIS using Arcpy
Automation in ArcGIS using Arcpy
Geodata AS
 
Editing arcgis10
Editing arcgis10Editing arcgis10
Editing arcgis10
Reza Fitria
 

Andere mochten auch (15)

Loading Parcels Into Smallworld GIS via FME
Loading Parcels Into Smallworld GIS via FMELoading Parcels Into Smallworld GIS via FME
Loading Parcels Into Smallworld GIS via FME
 
BK2015 Arcgis pro
BK2015 Arcgis proBK2015 Arcgis pro
BK2015 Arcgis pro
 
Automation in ArcGIS using Arcpy
Automation in ArcGIS using ArcpyAutomation in ArcGIS using Arcpy
Automation in ArcGIS using Arcpy
 
Python Programming for ArcGIS: Part I
Python Programming for ArcGIS: Part IPython Programming for ArcGIS: Part I
Python Programming for ArcGIS: Part I
 
ArcGIS Lesson 3
ArcGIS Lesson 3ArcGIS Lesson 3
ArcGIS Lesson 3
 
Avidgeo String Manipulation : Getting Started with Python and ArcGIS
Avidgeo String Manipulation : Getting Started with Python and ArcGISAvidgeo String Manipulation : Getting Started with Python and ArcGIS
Avidgeo String Manipulation : Getting Started with Python and ArcGIS
 
Guangzhou practice on urban planing
Guangzhou practice on urban planingGuangzhou practice on urban planing
Guangzhou practice on urban planing
 
Python and ArcGIS 10.1
Python and ArcGIS 10.1Python and ArcGIS 10.1
Python and ArcGIS 10.1
 
ArcGIS Python Programming (3Nov11)
ArcGIS Python Programming (3Nov11)ArcGIS Python Programming (3Nov11)
ArcGIS Python Programming (3Nov11)
 
Editing arcgis10
Editing arcgis10Editing arcgis10
Editing arcgis10
 
POLSAR CHANGE DETECTION
POLSAR CHANGE DETECTIONPOLSAR CHANGE DETECTION
POLSAR CHANGE DETECTION
 
Python 4 Arc
Python 4 ArcPython 4 Arc
Python 4 Arc
 
Editing for ArcGIS 10 and 10.1
Editing for ArcGIS 10 and 10.1Editing for ArcGIS 10 and 10.1
Editing for ArcGIS 10 and 10.1
 
Applications of Arc GIS
Applications of Arc GISApplications of Arc GIS
Applications of Arc GIS
 
Introduction to ArcGIS
Introduction to ArcGISIntroduction to ArcGIS
Introduction to ArcGIS
 

Ähnlich wie Python Scripting for ArcGIS

Using google appengine (2)
Using google appengine (2)Using google appengine (2)
Using google appengine (2)
Wei Sun
 
Using google appengine_1027
Using google appengine_1027Using google appengine_1027
Using google appengine_1027
Wei Sun
 
Using google appengine_final
Using google appengine_finalUsing google appengine_final
Using google appengine_final
Wei Sun
 
轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)
FLASH开发者交流会
 
Django敏捷开发 刘天斯
Django敏捷开发 刘天斯Django敏捷开发 刘天斯
Django敏捷开发 刘天斯
liuts
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介
Allen Lsy
 
Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境
Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境
Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境
drewz lin
 

Ähnlich wie Python Scripting for ArcGIS (20)

Using google appengine (2)
Using google appengine (2)Using google appengine (2)
Using google appengine (2)
 
Using google appengine_1027
Using google appengine_1027Using google appengine_1027
Using google appengine_1027
 
Developing Serverless application with Microsoft Azure and Cognitive Services
Developing Serverless application with Microsoft Azure and Cognitive ServicesDeveloping Serverless application with Microsoft Azure and Cognitive Services
Developing Serverless application with Microsoft Azure and Cognitive Services
 
4. Go 工程化实践-0124-v2.pdf
4. Go 工程化实践-0124-v2.pdf4. Go 工程化实践-0124-v2.pdf
4. Go 工程化实践-0124-v2.pdf
 
Using google appengine_final
Using google appengine_finalUsing google appengine_final
Using google appengine_final
 
2021 ee大会-旷视ai产品背后的研发效能工具建设
2021 ee大会-旷视ai产品背后的研发效能工具建设2021 ee大会-旷视ai产品背后的研发效能工具建设
2021 ee大会-旷视ai产品背后的研发效能工具建设
 
It基础架构的自动化编排
It基础架构的自动化编排It基础架构的自动化编排
It基础架构的自动化编排
 
美团点评技术沙龙13-前端工程化开发方案app-proto介绍
美团点评技术沙龙13-前端工程化开发方案app-proto介绍美团点评技术沙龙13-前端工程化开发方案app-proto介绍
美团点评技术沙龙13-前端工程化开发方案app-proto介绍
 
FeatHub_GAIDC_2022.pptx
FeatHub_GAIDC_2022.pptxFeatHub_GAIDC_2022.pptx
FeatHub_GAIDC_2022.pptx
 
如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境
如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境
如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境
 
轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)轻量级Flash服务器开发框架(刘恒)
轻量级Flash服务器开发框架(刘恒)
 
ASP.NET Core 6.0 全新功能探索
ASP.NET Core 6.0 全新功能探索ASP.NET Core 6.0 全新功能探索
ASP.NET Core 6.0 全新功能探索
 
Django敏捷开发 刘天斯
Django敏捷开发 刘天斯Django敏捷开发 刘天斯
Django敏捷开发 刘天斯
 
容器式基礎架構介紹
容器式基礎架構介紹容器式基礎架構介紹
容器式基礎架構介紹
 
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
 
ASP.NET Core 3.0 新功能
ASP.NET Core 3.0 新功能ASP.NET Core 3.0 新功能
ASP.NET Core 3.0 新功能
 
敦群學院-SharePoint精英計畫-系統開發-Day 1
敦群學院-SharePoint精英計畫-系統開發-Day 1敦群學院-SharePoint精英計畫-系統開發-Day 1
敦群學院-SharePoint精英計畫-系統開發-Day 1
 
Ibm dnt-dcos-v9-3
Ibm dnt-dcos-v9-3Ibm dnt-dcos-v9-3
Ibm dnt-dcos-v9-3
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介
 
Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境
Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境
Top100summit 腾讯-周健-服务化与体系化解决大量定制小项目开发困境
 

Python Scripting for ArcGIS