Introduction Presenter: James Zollweg, Ph.D.

Slides:



Advertisements
Similar presentations
WITHOUT LANGUAGE [ DEVELOPING GEO-PROCESSING MODELS USING ARCGIS MODELBUILDER 10 ] PROGRAMMING R. RYAN STEVENS / GIS RESEARCH ANALYST / THE POLIS CENTER.
Advertisements

How to enter the world of Python Programming for ArcGIS Or, a funny thing happened on the way from an ESRI conference By Katherine Paybins WVAGP Membership.
Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Geography 465 Overview Geoprocessing in ArcGIS. MODELING Geoprocessing as modeling.
Arc: Programming Options Dr Andy Evans. Programming ArcGIS ArcGIS: Most popular commercial GIS. Out of the box functionality good, but occasionally: You.
Esri International User Conference | San Diego, CA Technical Workshops | Loading CAD data into the Geodatabase Alex LeReaux Thursday, July 14, 2011 – 10:15.
Esri International User Conference | San Diego, CA Technical Workshops | Python – Getting Started Drew Flater, Ghislain Prince July 12 - July 14, 2011.
L-Thia Overview. L-THIA Area Process Index.html Select Existing (HUC) Watershed Input Latitude/Longitude Draw an Area of Interest (Box) Tabulate land.
Network Analysis with Python
Introduction to ArcPy. Topics What is ArcPy? Accessing geoprocessing tools using ArcPy Writing scripts using ArcPy.
Python: An Introduction
ArcGIS Network Analyst: Automating Workflows with Geoprocessing
CE 525. ESRI VIDEO Thanks to Flores we get to watch another video!
Publishing to ArcGIS for Server
Leveraging ArcGIS Online Elevation and Hydrology Services
ArcGIS Pro: A Quick Tour of Python David Wynne.
Advance Map Automation With Python
Esri Production Mapping: Automate Map Production With ArcGIS Workflow Manager Joe Sheffield.
Esri UC 2014 | Technical Workshop | Python Map Automation – Beyond the Basics of arcpy.mapping Jeff Barrette Jeff Moulds.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Geodatabase Administration:
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Building Map Books.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Automating Geodatabase.
Introduction Presenter: James Zollweg, Ph.D. Associate Professor of Water Resources and GIS The College at Brockport NYS GIS Association – Python Training,
Esri UC 2014 | Technical Workshop | Creating Geoprocessing Services Kevin Hibma.
Python: Building Geoprocessing Tools David Wynne, Ghislain Prince.
ArcGIS Workflow Manager: Integrating Geoprocessing into Your Business Processes Nishi Mishra.
Technical Workshops | Esri International User Conference San Diego, California Branching and Iteration in ModelBuilder Shitij Mehta July 24, :15.
Best 3 Software Development Languages. Hibernate Training Hibernate is a high-performance object-relational mapping tool and query service. Hibernate.
Jeff Barrette Jeff Moulds
Introduction to InVEST ArcGIS Tool
ArcGIS Workflow Manager: Advanced Workflows and Concepts
Desktop Mapping: Building Map Books
The importance of being Connected
GIS On A Budget: Simple Applications for Real World Solutions
Pivot Finder ArcGIS Tool
PYTHON: AN INTRODUCTION
Lawrence Livermore National Laboratory
Lecture 22: Using ArcToolbox Tools in Python
Automate ArcGIS with Python to Streamline Geographic Data Analysis
Tan Hoang GEOG 362 – Final Project
Creating Geoprocessing Services
AUTOMATED SESSION PLANNING. In the present world, everything has become automated. By, a click everything is being processed. But the preparation of the.
Using Model Builder in ArcGIS
Geoprocessing with ArcGIS for Server
How to enter the world of Python Programming for ArcGIS
Programming for Geographical Information Analysis: Advanced Skills
Lecture 10 Accessing tools and environment setting in Scripts
ModelBuilder for Beginners
Writing Geoprocessing Scripts With ArcGIS
Geo 318 – Introduction to GIS Programming
Programming for Geographical Information Analysis: Advanced Skills
Python Map Automation – Beyond the Basics of arcpy.mapping
Learning Common GIS Workflows
Building Map Books in ArcGIS
Automating Geodatabase Administration with Python
Vector Geoprocessing.
Leveraging ArcGIS Online Elevation and Hydrology Services
Python Map Automation – Beyond the Basics of arcpy.mapping
Network Analysis using Python
PYTHON: BUILDING GEOPROCESSING TOOLS
Building Map Books in ArcGIS
Network Analyst – Automating Workflows with Geoprocessing
ModelBuilder – Getting Started
Extending ArcGIS using programming
Creating Basemaps to Manage Buildings and Facilities
Programming Arc.
The Use of Looping Code in Map Production
Designing and Using Cached Map Services
Desktop Mapping: Building Map Books
Presentation transcript:

Introduction Presenter: James Zollweg, Ph.D. Associate Professor of Water Resources and GIS The College at Brockport NYS GIS Association – Python Training, Session 2 – July 17, 2012

Why a Python Seminar? 1. Python is an increasingly important part of ArcGIS mapping and geoprocessing 2. Python 'scripting' is a powerful tool for modeling and process automation 3. Build a greater sense of community among GIS professionals in NYS via shared professional development NYS GIS Association – Python Training, Session 2 – July 17, 2012

Need to know 1. The elements of Python – a general purpose programming language 2. ArcPy - provides Python access for all geoprocessing tools, as well as a wide variety of useful functions and classes for working with and interrogating GIS data. 3. Proficiency in ArcGIS mapping and geoprocessing NYS GIS Association – Python Training, Session 2 – July 17, 2012

Brief Review of Python Essentials Python is a free, cross-platform, open-source programming language that is both powerful and easy to learn. It is widely used and supported. To learn more about Python, visit python.org. NYS GIS Association – Python Training, Session 2 – July 17, 2012

Values and variables NYS GIS Association – Python Training, Session 2 – July 17, 2012

Definite repetition NYS GIS Association – Python Training, Session 2 – July 17, 2012

Indefinite Repetition NYS GIS Association – Python Training, Session 2 – July 17, 2012

Lists NYS GIS Association – Python Training, Session 2 – July 17, 2012

List Layers NYS GIS Association – Python Training, Session 2 – July 17, 2012

List Attributes NYS GIS Association – Python Training, Session 2 – July 17, 2012

So, how do you REALLY get started? Study example scripts Example: ReplaceWithLayerFile.py NYS GIS Association – Python Training, Session 2 – July 17, 2012

Title NYS GIS Association – Python Training, Session 2 – July 17, 2012

Exception Handling NYS GIS Association – Python Training, Session 2 – July 17, 2012

Exception Handling NYS GIS Association – Python Training, Session 2 – July 17, 2012

Title NYS GIS Association – Python Training, Session 2 – July 17, 2012

A VERY useful alternative Rather than scouring scripts for ideas (a good way to learn “in general”), let’s make ArcGIS write code snippets for us! NYS GIS Association – Python Training, Session 2 – July 17, 2012

A familiar geoprocessing operation... NYS GIS Association – Python Training, Session 2 – July 17, 2012

Access the “results” of GP operation NYS GIS Association – Python Training, Session 2 – July 17, 2012

Copy operation to a Python “snippet” NYS GIS Association – Python Training, Session 2 – July 17, 2012

The snippet # Replace a layer/table view name with a path to a dataset (which can be a layer file) or create the layer/table view within the script# The following inputs are layers or table views: "recreation"arcpy.Buffer_analysis("recreation","C:/tem p/tests/buff3.shp","100 Meters","FULL","ROUND","NONE","#") NYS GIS Association – Python Training, Session 2 – July 17, 2012

The snippet (with <cr>) # Replace a layer/table view name with a path to a dataset (which can be a layer file) or create the layer/table view within the script # The following inputs are layers or table views: "recreation“ arcpy.Buffer_analysis("recreation","C:/temp/tests/buff3.s hp","100 Meters","FULL","ROUND","NONE","#") NYS GIS Association – Python Training, Session 2 – July 17, 2012

Model Builder -> Python (I’ll show how to use Model Builder later in the presentation) NYS GIS Association – Python Training, Session 2 – July 17, 2012

Export to Python script NYS GIS Association – Python Training, Session 2 – July 17, 2012

The result NYS GIS Association – Python Training, Session 2 – July 17, 2012

Excellent source of information NYS GIS Association – Python Training, Session 2 – July 17, 2012

Another example NYS GIS Association – Python Training, Session 2 – July 17, 2012

Output NYS GIS Association – Python Training, Session 2 – July 17, 2012

Beware – repetition does not functionally export fro MB NYS GIS Association – Python Training, Session 2 – July 17, 2012

Non-functional Python code generated needs to be replaced with proper Python “for” loop NYS GIS Association – Python Training, Session 2 – July 17, 2012

Replace with proper Python repetition NYS GIS Association – Python Training, Session 2 – July 17, 2012

Shameless plug for the NYS GIS Association NYS GIS Association – Python Training, Session 2 – July 17, 2012

The NYS GIS Association “App site” Members-only site for sharing scripts and snippets “Moderated” and organized Watch for details! NYS GIS Association – Python Training, Session 2 – July 17, 2012

Thanks! Congratulations for jousting with a useful, important and difficult topic! jzollweg@brockport.edu NYS GIS Association – Python Training, Session 2 – July 17, 2012