How to enter the world of Python Programming for ArcGIS_第1頁
How to enter the world of Python Programming for ArcGIS_第2頁
How to enter the world of Python Programming for ArcGIS_第3頁
How to enter the world of Python Programming for ArcGIS_第4頁
How to enter the world of Python Programming for ArcGIS_第5頁
已閱讀5頁,還剩13頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、How to enter the world of Python Programming for ArcGISOr, a funny thing happened on the way from an ESRI conferenceBy Katherine PaybinsWVAGP Membership Meeting, November 3, 2011Why use Python in ArcGIS 9 or 10? With ArcGIS 10, Python scripting takes front place for programming repetitive tasks and

2、creating custom functions for the ArcToolbox. Python as a programming language has been around for awhile, and when your ArcGIS 10 was installed, Python 2.6.5 was also, with a GUI included called the Idle Python Shell. There are other GUIs out there, but the Idle GUI is one of the more popular for i

3、ts ease of use.From the Python TutorialPython is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Pythons elegant syntax and dynamic typing, together with its interpreted nature, make it a

4、n ideal language for scripting and rapid application development in many areas on most platforms.The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, :/ /, and may be freely distributed. Th

5、e same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.From ESRI help documentsPython was introduced to the ArcGIS community at 9.0. Since then, it has been accepted as the scripting language of choice for geo

6、processing users and continues to grow. Each release has furthered the Python experience, providing you with more capabilities and a richer, more Python-friendly experience.ESRI has fully embraced Python for ArcGIS and sees Python as the language that fulfills the needs of our user community. Here a

7、re just some of the advantages of Python:Easy to learn and excellent for beginners, yet superb for experts Highly scalable, suitable for large projects or small one-off programs known as scripts Portable, cross-platform Embeddable (making ArcGIS scriptable) Stable and mature A large user community P

8、ython extends across ArcGIS and becomes the language for data analysis, data conversion, data management, and map automation, helping increase productivity.More help pagesWhere to find in ArcGIS?The IDLE python shell:Look at the ESRI site for sample scripts to download, and also look within the ArcT

9、oolBox for scripts.Online classes The Python tutorial is available on several sites, but you have it on your computer if you have ArcGIS installed ESRI offers twelve online courses relating directly to or referencing Python, including:Basics of Python (for ArcGIS 10)Python Scripting for Map Automati

10、on in ArcGIS 10Python Scripting for Geoprocessing Workflows (ArcGIS 10)An example of learning the software First, conference sessions showing use of the new arcpy set of python scripts Next, taking the tutorial and starting a notes for future reference/ copy and paste into Python. Also, testing out

11、running commands in the Python window Purchased a couple of books on the topic- I like the Python Phrasebook by Brad Dayley, and Core Python Programming by Wesley Chun As I work on projects, I try to view any Python scripts in the GeoProcessing toolsTaking notes is a good ideaFor instance, here are some notes from the Tutorial that I have kept for reference and cut/paste._Commands to start at beginning of interactive Python session, or in a script if I want the functionality included by using these commands.import osfilename = os.environ.get(PYTHONSTARTUP) if filename and os.path.isfile(file

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論