Download presentation
Presentation is loading. Please wait.
Published byBrittney Potter Modified over 9 years ago
1
Python Beyond the Basics …. Ghislain Prince Jeff Bigos
2
Comprehensions Cursors Modules Geometry
3
Comprehensions
4
List Comprehensions - Loop and filter items from an existing list - List is returned
5
Comprehensions List Comprehensions - Loop and filter items from an existing list - List is returned
6
Comprehensions List Comprehensions - Loop and filter items from an existing list - List is returned
7
Comprehensions List Comprehensions - Loop and filter items from an existing list - List is returned
8
Comprehensions Dictionary Comprehensions - Loop and filter items from an existing Dictionary - Dictionary is returned
9
Comprehensions Dictionary Comprehensions - Loop and filter items from an existing Dictionary - Dictionary is returned
10
Comprehensions Dictionary Comprehensions - Loop and filter items from an existing Dictionary - Dictionary is returned
11
Cursors
12
Two varieties - Arcpy.da cursors (10.1 onwards) - ‘Classic’ cursors TypeFunction SearchCursorRead-only UpdateCursorUpdate or delete rows InsertCursorInsert rows
13
Understanding Data access Cursors Fields parameter - Index position in fields parameter defines value access - Provide needed fields
14
Understanding Data access Cursors Fields parameter - Index position in fields parameter defines value access - Provide needed fields
15
Understanding Data access Cursors Where Clause - Filters the records returned Spatial Reference - Project data on the fly
16
Geometry
18
Creating Geometry
19
List of coordinates - *coords Creating Geometry
20
Relational: - Is a point within a polygon - Return Boolean Values Geometry Operators
21
Contains: Geometry Operators Crosses: Touches: Additional Methods in the documentation
22
Modules
23
Modules: Included with python - urllib: functions and classes for using internet resources - Urlencodings, POST, GET - json: work with json data - Encoding, decoding - zipfile: create and extract from zipfiles - Resources: - Python help: Global Module Index - Python module of the week
24
Modules: Included with ArcGIS - numpy: n- dimensional array - Spatial Analyst, arcpy.da conversion functions - matplotlib: Graphing and Charting - Spatial Statistics visual outputs - xlrd / xlwt: read and write excel files - Used in the excel toolset - Resources: - Python help: Global Module Index - Python module of the week
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.