arcpy.Describe and arcpy.List*

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

1 of 22 Tough love Grandma. 2 of 22 Extraordinary People Iceman Blind painter Human calculator Human camera Human compass Spiderman Roofballers.
Web GIS Oregon Explorer Marc G Rempel Oregon State University The Valley Library Oregon Explorer
Environmental GIS Nicholas A. Procopio, Ph.D, GISP Some slides from Lyna Wiggins (Rutgers University)
Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Introduction to ArcPython Dan Mahr ‘11 10/28/2014 GEOL1320.
Jim Walth Associate Biologist Central Coast Environmental Management Branch (805) (Office)
GIS Topics and Applications
Geography 465 Working with ArcGIS Tools and Environment Settings.
Python & ModelBuilder. Overview Python/ModelBuilder Concepts – The Geoprocessor – Checking some environment variables – Providing feedback from your model/script.
GIS Customization I. Binaural recording + reconstructing performances Holophonics - Virtual Barber Shop John Q. Walker: Re-creating great performances.
ModelBuilder In ArcGIS 9.x By Tim Weigel GEOG 407/607 April 3 rd, 2006.
Geography 465 Overview Geoprocessing in ArcGIS. MODELING Geoprocessing as modeling.
1 Flash Actionscript Adding Interactive Actions. 2 ActionScript 3.0 ActionScript is the language you use to add interactivity to Flash applications, whether.
Technical Workshops | Esri International User Conference San Diego, California Customizing ArcPad solutions Marika Vertzonis, Gareth Walters, Stephen Quan.
What Geoprocessing? Geoprocessing is the processing of geographic information. Commonly used to describe a process when geographic objects are manipulated.
ModelBuilder at ArcGIS 9.2 Lyna Wiggins Rutgers University May 2008.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Kurt Menke, GISP GRASS GIS Geographic Resources Analysis Support System.
Habitat Analysis in ArcGIS Use of Spatial Analysis to characterize used resources Thomas Bonnot
Advance Model Builder Features. Advance Features Using Lists (also Batching) Iteration Feedback Model Only Tools Inline Variable Substitution Preconditions.
Sharing imagery and raster data in ArcGIS
NR 322: Organizing Data Jim Graham Fall GIS Data Flow Project, resample Processing Processed Data Original Data Final data And maps.
‘ {] Chapter 2 (HW01) Getting Started with Windows 7.
Chapter 11-Multimedia Authoring Tools. Overview Introduction to multimedia authoring tools. Types of authoring tools. Cross-platform authoring notes.
Python & ModelBuilder. Continuing Education Python and ModelBuilder Overview Python/ModelBuilder Concepts –The Geoprocessor –Checking some environment.
Esri International User Conference | San Diego, CA Technical Workshops | Python – Getting Started Drew Flater, Ghislain Prince July 12 - July 14, 2011.
Working with cursors in Python GISDE Python Workshop Qiao Li.
2006 GIS Jam: ArcGIS Python Scripting
Introduction to Spatial Analysis and Spatial Modeling
Overview Cursors arcpy.da module Geometrys Arrays SpatialReferences
Introduction to ArcPy. Topics What is ArcPy? Accessing geoprocessing tools using ArcPy Writing scripts using ArcPy.
Python: An Introduction
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Major parts of ArcGIS ArcView -Basic mapping, editing and Analysis tools ArcEditor -all of ArcView plus Adds ability to deal with topological and network.
Using Describe. Topics How to use describe? Retrieving Descriptive Information about data.
Module2: Using Dialog Tools. What is the mean distance to the nearest wetland vegtype of 2 or 8 or 15 or 18?
ArcGIS Pro: A Quick Tour of Python David Wynne.
Advance Map Automation With Python
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Converting workflows from ArcSDE Command line in ArcGIS 10.3.x
Flash! Macromedia Flash is the key to designing and delivering low-bandwidth animations, presentations, and Web sites. It offers scripting capabilities.
Macromedia Studio 8 Step-by-Step MACROMEDIA FLASH 8 Introduction.
Module 6: Geoprocessing Scripts. Processing loops and decisions.
INTRODUCTION TO FLASH CS5 Understanding the Workspace (Review: Animation Key Terms)
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Automating Geodatabase.
Juanita Cano City of Sacramento Spring 2014 Geography 375.
Working with CAD Data In ArcGIS Travis Wagner. New Features Adds CAD datasets as group layers –Still have the ability to access all feature types properties.
Flash 1. Document Properties Set frame rate and dimensions of project Set frame rate and dimensions of project (default width=550 and height=400)
Python: Building Geoprocessing Tools David Wynne, Ghislain Prince.
Lecture 10: Geoprocessing with Python (II) Dr. Taysir Hassan Abdel Hamid Associate Professor, Information Systems Dept., Faculty of Computers and Information.
Technical Workshops | Esri International User Conference San Diego, California Branching and Iteration in ModelBuilder Shitij Mehta July 24, :15.
Jeff Barrette Jeff Moulds
Lecture 9: Geoprocessing with Python
Background Information
PYTHON: AN INTRODUCTION
Environmental GIS Nicholas A. Procopio, Ph.D, GISP
Chapter Lessons Understand the Macromedia Flash workspace
Tutorial 7 Working with Multimedia
Working with Multimedia
This lecture Introduction to arcpy Debugging Using arcpy.
Geography 465 GIS Database Programming
Automating Geodatabase Administration with Python
Network Analysis using Python
ModelBuilder – Getting Started
PYTHON: BUILDING GEOPROCESSING TOOLS
ModelBuilder – Getting Started
Extending ArcGIS using programming
Clip & Convert to ASCII Program Kelly Knapp Spring 2010
The Web Collection Standard CS3 Revealed
Presentation transcript:

arcpy.Describe and arcpy.List*

Describing objects ArcGIS interacts with a number of types of objects arcpy.Describe(object) exposes object properties that can be used in Python to control program flow, tool parameter values, etc. of geoprocessing scripts e.g. Clip all polyline feature classes in a workspace.

gp.List*  Python list of objects ArcGIS 10 Overview gp.Describe(object)  Describe object gp.List*  Python list of objects ArcGIS 10 arcpy.Describe(object) arcpy.List*

Evolution Describe Object Properties An example of how Python is evolving with ArcGIS 9.2 9.3

Describing data in 10.x

Describe Example (feature class) … if you plan to do multiples in same workspace

Describe a Feature Class

Describe a Geodatabase some are case sensitive, others not arcpy.env.workspace is

Fields in a Feature Class via Describe ArcGIS 8.x, 9.x ArcGIS 10

Describe a Raster

List functions Scripts allow you to iterate through lists arcpy provides many list functions that create lists of objects e.g. For each feature class in a given workspace, create a report that shows how many are point, line, and polygon (uses ListFeatureClasses and Describe)

Lists of Objects in Geoprocessing OMD

List*: Python List (i.e. returns a Python List) Listing Data List*: Python List (i.e. returns a Python List) Know number of * in a Python list Use a for loop

ListFeatureClasses([wildCard], [FeatureType])

ListFeatureClasses examples

ListFields(pInputValue, [wild card], [FieldType]) Same Field object as each Field object in list that is returned by Fields property of the Describe Object

ListFields examples

os.walk(top, topdown=True, onerror=None, followlinks=False)

os.walk() simple example

os.walk() not-so-simple example Find all Flash videos (SWF) in the entire tree under a given root folder If the SWF file has the “slide”, and not “group”, as part of its name convert the first frame of the video to a JPG with the name of the SWF

Dependencies Python for Windows Extensions Interfacing with Windows, Windows applications & libraries Examples @ http://win32com.goermezer.de/content/category/7/87/189/ SWF To Image ActiveX library https://bytescout.com/download/download_freeware.html

os.walk() not-so-simple example