1/29 Former leader of the “free” world … “I know what I believe. I will continue to...
-
Upload
spencer-palmer -
Category
Documents
-
view
221 -
download
0
Transcript of 1/29 Former leader of the “free” world … “I know what I believe. I will continue to...
![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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/1.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/2.jpg)
2/29
Satellite tracking systems
http://www.orbcomm.com
![Page 3: 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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/3.jpg)
3/29
arcpy.*Cursor functions
![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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/5.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/7.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/8.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/10.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/11.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/12.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/13.jpg)
13/29
SearchCursor Function and Class Example
68 sec for Function
0.66 sec for Class
~100 times faster in this example.
![Page 14: 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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/14.jpg)
14/29
The Geometry Class
![Page 15: 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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/15.jpg)
15/29
Geometry Properties
![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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/16.jpg)
16/29
Geometry Methods
… and clipcontainsconvexHullcrossesdifferencedisjointdistanceToequalsgetAreagetLengthgetPartintersectoverlapspositionAlongLineprojectAssymmetricDifferencetouchesunionwithin
![Page 17: 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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/17.jpg)
17/29
Reading geometries
![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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/18.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/19.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/20.jpg)
20/29
Spatial reference and cursors
![Page 21: 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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/21.jpg)
21/29
Creating a spatial reference
![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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/25.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/26.jpg)
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.](https://reader030.fdocuments.net/reader030/viewer/2022033106/56649e1f5503460f94b0aa20/html5/thumbnails/27.jpg)
27/29