Transcript of "Esri South Africa Python for Everyone"
Python for Everyone
Introduction Presenters: Rudolf Eduard Matthew Lawrence
Presentation Outline1. Introduction.2. What is Python?3. Why Python?4. Where does it fit in?5. Automate Workflow (Desktop)6. Automate Workflow (Server)7. ArcGIS Resources centres8. Training9. Closing
What is Python?• Python was created in 1990 by Guido van Rossum“Python is an easy to learn, powerful language… (with) high-leveldata structures and a simple but effective approach toobject-oriented programming. Python’s elegant syntax anddynamic typing…make it an ideal language for scripting…in manyareas and on most platforms.” –python.org• Scripting language of ArcGIS• Free, cross-platform, easy to learn, widely used, great community
Why Python?• Automating workflow• Productivity (faster)• Cross platform• Industry and Open Standards• Scripting language• Extend Model builder• Scheduled tasks• Standard install with ArcGIS• Integrated with ArcGIS (ArcPy)
ArcGIS integration (ArcPY)• Creates a useful and productive way to execute geographic data analysis, data conversion, data management, and map automation within the Python framework.• ArcGIS applications written with ArcPy provide access to numerous additional libraries available in the Python community.• GIS professionals and programmers can benefit from integration with these various disciplines.
Demo (Desktop)• Field calculator• From model to script• Script scheduling• Batch process with log• Batch process with email• Batch metadata extraction• Enhanced Data Driven Pages• Geometry operations• Sample Scripts
Demo (Desktop)• ArcPY Documentation / Help reference• Python window – (run buffer example)• ArcPY list function – (list layers or MXD’s)• Working with selections – (sample from training)• Geometry – (sample from training)• Sharing Geoprocessing package – (buffer / clip tool)