Your SlideShare is downloading. ×
Python Scripting for ArcGIS
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Python Scripting for ArcGIS

796
views

Published on

Python Scripting for ArcGIS …

Python Scripting for ArcGIS
Presented by Teng
2013.09.12

Published in: Technology, Education

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
796
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
47
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Python Scripting for ArcGIS ZHONG Teng Sep 12, 2013
  • 2. 山顶点提取
  • 3. Automatic
  • 4. Model Builder
  • 5. BUT
  • 6.  模型参数过多  路径设置繁琐  不能自定义某些特定功能
  • 7. Why Scripting 解决空间数据处理的复杂、费时和 重复性等问题,达到批量、自动数 据处理的目的 有效整合利用ArcGIS软件自带工具, 以及数据存储、可视化及输出等功 能 相比C++, .NET等基于ArcObjects 的编程更简单方便
  • 8. Why Python ESRI支持并大力推荐 语法简单易用,适合初学者 资源丰富 http://arcscripts.esri.com/
  • 9. http://arcscripts.esri.com/details.asp?dbid=15999
  • 10. Python Scripting的两种使用方 式  基于窗口的方式 (Python window)  基于工具的方式 (Use scripts as tools)
  • 11. 基于窗口的方式
  • 12. 基于窗口的方式
  • 13. 基于窗口的方式
  • 14. CTRL+ENTER ENTER twice 基于窗口的方式
  • 15. 基于工具的方式
  • 16. 基于工具的方式
  • 17. 基于工具的方式
  • 18. 基于工具的方式
  • 19. 基于工具的方式
  • 20. 基于工具的方式
  • 21. 基于工具的方式
  • 22. 基于工具的方式
  • 23. 基于工具的方式
  • 24. Functions of Python Scripting in ArcGIS 处理属性表数据(Attributes) 处理几何数据(Geometries) 处理栅格数据(Rasters)
  • 25. 处理属性表数据(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
  • 26. 处理属性表数据(Attributes)
  • 27. 处理几何数据(Geometries) Read Geometry Write Geometry
  • 28. Read Geometry
  • 29. Read Geometry
  • 30. Write Geometry
  • 31. 处理栅格数据(Rasters)
  • 32. 处理栅格数据(Rasters)
  • 33. 有用的资源(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)