所需积分/C币:25 2019-09-13 17:54:40 4.23MB PDF
收藏 收藏 1

ArcPy and ArcGis- Geospatial analysis with Python Table of contents ArcPy and ArcGIS-Geospatial Analysis with Python Credits about the author about the reviewers 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

试读 127P ArcPy-and-ArcGIS-Geospatial-Analysis-with-Python.pdf
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    weixin_38744207 你的留言是对我莫大的支持
    • 至尊王者

    关注 私信 TA的资源
    ArcPy-and-ArcGIS-Geospatial-Analysis-with-Python.pdf 25积分/C币 立即下载


    25积分/C币 立即下载 >