27
1/29 Former leader of the “free” world … http:// www.dubyaspeak.com “I know what I believe. I will continue to articulate what I believe and what I believe – I believe what I believe is right.” “Science is not an art – I mean, reading is not an art. It's a science.” “If a person doesn't have the capacity that we all want that person to have, I suspect hope is in the far distant future, if at all.” “Rarely is the question asked: Is our children learning?” “We spent a lot of time talking about Africa, and we should. Africa is a nation that suffers from incredible disease.”

1/29 Former leader of the “free” world … “I know what I believe. I will continue to articulate what I believe and what I believe

Embed Size (px)

Citation preview

Page 1: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

1/29

Former leader of the “free” world …

http://www.dubyaspeak.com

“I know what I believe. I will continue to articulate what I believe and what I believe – I believe what I believe is right.”

“Science is not an art – I mean, reading is not an art. It's a science.”

“If a person doesn't have the capacity that we all want that person to have, I suspect hope is in the far distant future, if at all.”

“Rarely is the question asked: Is our children learning?”

“We spent a lot of time talking about Africa, and we should. Africa is a nation that suffers from incredible disease.”

“Our nation must come together to unite.”

“I know the human being and fish can coexist peacefully”

G. Dubya Bush

Page 2: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

2/29

Satellite tracking systems

http://www.orbcomm.com

Page 5: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

5/29

SearchCursor Example

Page 7: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

7/29

Update cursor example

Page 8: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

8/29

Insert/Update and Locked data

Can not Insert/Update if data is lockedFeature class or table can be locked if it is:

Part of a map in an MXD that is open in ArcMapPart of a workspace being viewed by ArcCatalog

Best practices include:Exit ArcGIS applications when running scripts that create or modify tables or feature classesDelete cursor objects when you have finished using them …

Page 10: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

10/29

InsertCursor Example

Page 11: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

11/29

The Data Access (da) module

arcpy.da.Walk( ) – an ArcGIS-aware version of os.path.walk ( )

New to 10.1 with faster cursors

Page 12: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

12/29

SearchCursor Function and Classarcpy Function

arcpy.da Class

Page 13: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

13/29

SearchCursor Function and Class Example

68 sec for Function

0.66 sec for Class

~100 times faster in this example.

Page 16: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

16/29

Geometry Methods

… and clipcontainsconvexHullcrossesdifferencedisjointdistanceToequalsgetAreagetLengthgetPartintersectoverlapspositionAlongLineprojectAssymmetricDifferencetouchesunionwithin

Page 18: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

18/29

Writing geometries using Python

Polylines by example …

Page 19: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

19/29

Writing geometries using Python

For Update/InsertCursor objects, test your scripts on a copy of the dataset. It is sometimes hard to undo modifications to data!

Input file structure:

Page 20: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

20/29

Spatial reference and cursors

Page 22: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

22/29

Point and PointGeometry Classes

Page 25: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

25/29

Licensing and Installation

Page 26: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

26/29

Licensing and Installation

Check to see if a license is available

Returns license to license manager

Check out license from license manager

See if requested product is available

Information about installation

Install types that used with GetInstallInfo

Current product license

Legacy … replaced by

Page 27: 1/29 Former leader of the “free” world …  “I know what I believe. I will continue to articulate what I believe and what I believe

27/29