文件名称:
ArcPy-and-ArcGIS-Geospatial-Analysis-with-Python.pdf
开发工具:
文件大小: 4mb
下载次数: 0
上传时间: 2019-09-13
详细说明:ArcPy-and-ArcGIS-Geospatial-Analysis-with-PythonArcPy and ArcGis- Geospatial analysis
with Python
Table of contents
ArcPy and ArcGIS-Geospatial Analysis with Python
Credits
about the author
about the reviewers
www.Packtpub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
ownloading the color images of this bool
Errata
Piracy
Questions
Introduction to Python for ArcGis
Overview of python
Python as a programming language
Interpreted language
Standard(built-in library
The glue language
Wrapper modules
The basics of python
Import statements
Variables
For loops
If/Elif/else statements
While statements
Comments
Data types
Strings
Integers
Floats
sts
iples
Dictionaries
iteraBle data types
Other important concepts
Indentation
Functions
Keywords
Namespaces
Zero-based indexing
Important python Modules for gis analysis
The ArcPy module
The Operating system(os) module
The Python System(sYs module
The Xlrd and xlwt modules
Commonly used built-in functions
Commonly used standard library modules
Summary
2. Configuring the Python Environment
What is a Python script?
How Python executes a script
What is the Python interpreter?
Where is the Python interpreter located?
Which Python interpreter should be used?
How does the computer know where the interpreter is?
Make python scripts executable when clicked on
Integrated Development Environments (IDEs)
IDLE
Python Win
Aptana studio
IDE summary
Python folder structure
nere toques reside
Using Pythons sys module to add a module
The sys. path append method
Summary
3. Creating the first Python Script
Prerequisites
Modelbuilder
Creating a model and exporting to Python
Modeling the Select and Buffer tools
Adding the intersect too.
Tallying the analysis results
Exporting the model and adjusting the script
The automatically generated script
File paths in python
Continuing the script analysis: the arcPy tools
The Intersect tool and string manipulation
The string manipulation method 1-string addition
The string manipulation method 2-string formatting #1
The string manipulation method 3-string formatting #2
Adjusting the script
Adding the Csv module to the script
Accessing the data: USing a cursor
The final script
Summary
4. Complex arcPy scripts and generalizing functions
Python functions-Avoid repeating code
Technical definition of functions
a first function
Functions with parameters
Using functions to replace repetitive code
More generalization of the functions
Summary
5. ArcPy Cursors- Search, Insert, and Update
The data access module
Attribute field interactions
Update cursors
Updating the shape field
Adiusting a point location
Deleting a row using an Update Cursor
Using an Insert Cursor
inserting a polyline geometry
nserting a polygon geometry
Summary
6. Working with ArcPy Geometry Objects
ArcPy geometry object classes
ArcPy Point objects
ArcPy Array objects
ArcPy Polyline objects
ArcPy Polygon objects
Polygon object buffers
Other Polygon object methods
ArcPy geometry objects
ArcPy Point Geometry objects
Summary
7. Creating a Script Tool
Adding dynamic parameters to a script
Displaying script messages using arcpy AddMessage
Adding dynamic components to the script
Creating a Script tool
Labelling and defining parameters
Adding data types
Adding the bus stop feature class as a parameter
Adding the Census Block feature class as a parameter
Adding the Census Block field as a parameter
Adding the output spreadsheet as a parameter
Adding the spreadsheet field names as a parameter
Adding the sol statement as a parameter
Adding the bus stop fields as a parameter
Inspecting the final script
Running the Script Tool
Summary
8. Introduction to ArcPy Mapping
Using ArcPy with map documents
Inspecting and replacing layer sources
Fixing the broken links
Fixing the links of individual layers
Exporting to PDF from an MXD
Adjusting map document elements
Automated map document adjustment
The variables
The map document object and the text elements
The layer objects
Replacing the data sources
Adjusting layer visibility
Generating a buffer from the bus stops feature class
Intersecting the bus stop buffer and census bl
OCKS
Populating the selected bus stop and buffer feature classes
Updating the text elements
Exporting the adjusted map to PDe
Running the script in the python Window
Summary
9. More ArcPy. Mapping Techniques
Using arcpymapping to control Layer objects
Layer object methods and properties
Definition queries
Controlling the data frame window extent and scale
Adding a Layer object
Exporting the maps
Summary
10. Advanced geometry Object methods
creating a python module
The init py file
Adding advanced analysis components
Advanced polygon obiect methods
Generating random points to represent population
USing the functions within a script
creating an XLS using XLWT
Summary
11. Network Analyst and Spatial Analyst with ArcPy
The Network Analyst extension
Using Network Analyst
Creating a Feature Dataset
porting the datasets
Creating the Network Dataset
Accessing the Network Dataset using ArcPy
Breaking down the script
e Network analyst module
Accessing the Spatial Analyst Extension
Adding elevation to the bus stops
Using Map Algebra to generate elevationinfeet
Adding in the bus stops and getting elevation values
The final result
Summary
12. The end of the beginning
Getting field information from feature classes
Accessing the ListFields'-properties
List comprehensions
Creating the field information functions
Querying feature class information
Generating File Geodatabases and feature classes
Generating a feature class
Setting up the script tool parameters
Environmental settings
Resolution and tolerance settings
Summary
eX
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.