Python Scripting in ArcGIS - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Python Scripting in ArcGIS

Description:

Instructor: Tracy Kugler. Introductions. Who am I? Geography PhD candidate. GIS TA ... I provide framework, basic information and present problems ... – PowerPoint PPT presentation

Number of Views:696
Avg rating:3.0/5.0
Slides: 17
Provided by: peopleOre
Category:

less

Transcript and Presenter's Notes

Title: Python Scripting in ArcGIS


1
Python Scripting in ArcGIS
  • Week 1
  • Introduction and Model Builder Refresher

GEO 599, Fall 2009 Instructor Tracy Kugler
2
Introductions
  • Who am I?
  • Geography PhD candidate
  • GIS TA
  • Needed Python for research
  • Experience teaching myself programming languages
  • Who are you?
  • Field/research area
  • Interest in Python/this course

3
Purpose of the Course
  • Become familiar with the Python scripting
    language as it relates to ArcGIS
  • Be able to use Python to facilitate a variety of
    tasks in ArcGIS
  • NOT a computer science course!

4
Course Structure/Philosophy
  • I provide framework, basic information and
    present problems
  • Learn as much for yourself and from each other as
    from me
  • Active lectures participation is expected
  • Ask questions!
  • New course let me know if something isnt
    working

5
Logistics
  • Exercises
  • Start together, finish individually
  • Submit via e-mail FOLLOW NAMING CONVENTIONS
  • Late assignments -10 points/day let me know if
    time allowed is too short
  • Resources
  • Lack of good ArcGIS/Python text
  • Online resources

6
Computer Data Access
  • Cordley 3003 lab
  • Course meeting time
  • Other non-scheduled times
  • Digital Earth (Wilk 210) when not in use
  • Data
  • Download from course website
  • http//people.oregonstate.edu/kuglert/
  • Save to your ONID folder
  • Work from your ONID folder

7
Course Data
  • Census geography
  • Blocks ? Block groups ? Census tracts
  • Hierarchy of geographical units over which
    statistics are agglomerated
  • Urbanized areas
  • Collections of (generally) contiguous,
    densely-settled block groups
  • Metropolitan Statistical Areas
  • Groups of counties
  • Include a large population nucleus and
    surrounding communities associated with that
    nucleus

8
Metropolitan Regions
  • Based on MSA and UA
  • Circular to standardize boundary shape
  • Center is density-weighted center of UA within MSA

MSA
Region2
Region1
UA
Ctr
9
Database Contents
3 Metro regions per dataset
4 datasets
2 tables
National UA feature class
8 Feature classes per metro region
10
Pair and Compare
  • Census Geography
  • Metropolitan Regions

11
Geoprocessing
  • Organized sequence of steps to accomplish a
    spatial analysis task
  • Examples of spatial analysis tasks?
  • Process diagrams
  • Pseudocode
  • Standardized outcome of trial-and-error

12
Model Builder
  • Graphical method of doing geoprocessing
  • Drag-and-drop data sets and tools
  • Double-click on tools to set parameters
  • Can export as Python script

13
Model Builder Basics
  • What are the inputs and outputs?
  • What tools are used?
  • What does this model do?

14
Parameters in Models
  • Setting model elements as parameters allows for
    user input
  • Can mark inputs and outputs as parameters
  • Can also create variables from tool parameters
  • ArcGIS creates dialog box

15
Model Properties
  • General properties
  • Name, Label
  • Documentation
  • Iteration set model to run multiple times

16
ArcGIS Desktop Help
  • Good resource make it your friend
  • Help file for each ArcToolbox tool
  • Describes, possibly illustrates, tools function
  • Usage tips gives details, especially about input
    and output data types
  • Includes section on Scripting Syntax
Write a Comment
User Comments (0)
About PowerShow.com