ArcPy and ArcGIS - geospatial analysis with Python: use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Birmingham ; Mumbai
PACKT PUBLISHING
2015
|
Ausgabe: | first published |
Schriftenreihe: | Community experience distilled
Open source |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | 205 Seiten Illustrationen |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV042812924 | ||
003 | DE-604 | ||
005 | 20160913 | ||
007 | t | ||
008 | 150908s2015 a||| |||| 00||| eng d | ||
020 | |z 9781783988662 |9 978-1-78398-866-2 | ||
035 | |a (OCoLC)922699882 | ||
035 | |a (DE-599)BVBBV042812924 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-Aug7 |a DE-83 | ||
084 | |a ST 690 |0 (DE-625)143691: |2 rvk | ||
100 | 1 | |a Toms, Silas |e Verfasser |4 aut | |
245 | 1 | 0 | |a ArcPy and ArcGIS - geospatial analysis with Python |b use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS |c Silas Toms |
250 | |a first published | ||
264 | 1 | |a Birmingham ; Mumbai |b PACKT PUBLISHING |c 2015 | |
300 | |a 205 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Community experience distilled | |
490 | 0 | |a Open source | |
600 | 0 | 7 | |a Python |0 (DE-588)118793772 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Geoinformatik |0 (DE-588)7571300-7 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Geoinformatik |0 (DE-588)7571300-7 |D s |
689 | 0 | 1 | |a Python |0 (DE-588)118793772 |D p |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028242396&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-028242396 |
Datensatz im Suchindex
_version_ | 1804175055502966784 |
---|---|
adam_text | Titel: ArcPy and ArcGIS - geospatial analysis with Python
Autor: Toms, Silas
Jahr: 2015
Table of Contents
Preface 1
Chapter 1: Introduction to Python for ArcGIS 7
Overview of Python 7
Python as a programming language 8
Interpreted language 8
Standard (built-in) library 9
The glue language 9
Wrapper modules 9
The basics of Python 10
Import statements 11
Variables 12
For loops 13
If/Elif/Else statements 14
While statements 14
Comments 15
Data types 15
Strings 16
Integers 16
Floats 17
Lists 17
Tuples 18
Dictionaries 18
Iterable data types 19
Other important concepts 20
Indentation 20
Functions 21
Keywords 21
Namespaces 21
Zero-based indexing 22
Table of Contents
Important Python Modules for GIS Analysis 22
The ArcPy module 22
The Operating System (OS) module 23
The Python System (SYS) module 23
The XLRD and XLWT modules 23
Commonly used built-in functions 24
Commonly used standard library modules 24
Summary 24
Chapter 2: Configuring the Python Environment_25
What is a Python script? 25
How Python executes a script 26
What is the Python interpreter? 26
Where is the Python interpreter located? 27
Which Python interpreter should be used? 27
How does the computer know where the interpreter is? 28
Make Python scripts executable when clicked on 29
Integrated Development Environments 30
IDLE 30
PythonWin 31
Aptana Studio 3 33
IDE summary 35
Python folder structure 36
Where modules reside 37
Using Python s sys module to add a module 37
The sys.path.append() method 38
Summary 39
Chapter 3: Creating the First Python Script_41
Prerequisites 41
ModelBuilder 42
Creating a model and exporting to Python 42
Modeling the Select and Buffer tools 43
Adding the Intersect tool 44
Tallying the analysis results 45
Exporting the model and adjusting the script 46
The automatically generated script 46
File paths in Python 48
Continuing the script analysis: the ArcPy tools 49
The Intersect tool and string manipulation 50
The string manipulation method 1-string addition 51
The string manipulation method 2-string formatting #1 52
The string manipulation method 3-string formatting #2 53
Table of Contents
Adjusting the Script 54
Adding the CSV module to the script 54
Accessing the data: Using a cursor 55
The final script 57
Summary 59
Chapter 4: Complex ArcPy Scripts and Generalizing Functions 61
Python functions-Avoid repeating code 61
Technical definition of functions 62
A first function 63
Functions with parameters 63
Using functions to replace repetitive code 65
More generalization of the functions 74
Summary 80
Chapter 5: ArcPy Cursors - Search, Insert, and Update 81
The data access module 82
Attribute field interactions 85
Update cursors 86
Updating the shape field 87
Adjusting a point location 87
Deleting a row using an Update Cursor 88
Using an Insert Cursor 89
Inserting a polyline geometry 90
Inserting a polygon geometry 91
Summary 93
Chapter 6: Working with ArcPy Geometry Objects 95
ArcPy geometry object classes 96
ArcPy Point objects 97
ArcPy Array objects 98
ArcPy Polyline objects 99
ArcPy Polygon objects 100
Polygon object buffers 101
Other Polygon object methods 102
ArcPy geometry objects 103
ArcPy PointGeometry objects 104
Summary 107
Chapter 7: Creating a Script Tool 109
Adding dynamic parameters to a script 109
Displaying script messages using arcpy.AddMessage 110
Adding dynamic components to the script 111
Table of Contents
Creating a Script tool 112
Labelling and defining parameters 115
Adding data types 116
Adding the Bus Stop feature class as a parameter 117
Adding the Census Block feature class as a parameter 118
Adding the Census Block field as a parameter 118
Adding the output spreadsheet as a parameter 119
Adding the spreadsheet field names as a parameter 120
Adding the SQL Statement as a parameter 121
Adding the bus stop fields as a parameter 122
Inspecting the final script 123
Running the Script Tool 125
Summary 126
Chapter 8: Introduction to ArcPy.Mapping_127
Using ArcPy with map documents 128
Inspecting and replacing layer sources 128
Fixing the broken links 129
Fixing the links of individual layers 130
Exporting to PDF from an MXD 131
Adjusting map document elements 131
Automated map document adjustment 135
The variables 138
The map document object and the text elements 138
The layer objects 139
Replacing the data sources 140
Adjusting layer visibility 140
Generating a buffer from the bus stops feature class 141
Intersecting the bus stop buffer and census blocks 141
Populating the selected bus stop and buffer feature classes 142
Updating the text elements 143
Exporting the adjusted map to PDF 143
Running the script in the Python Window 144
Summary 145
Chapter 9: More ArcPy.Mapping Techniques_147
Using arcpy.mapping to control Layer objects 147
Layer object methods and properties 148
Definition queries 149
Controlling the data frame window extent and scale 152
Adding a Layer object 153
Exporting the maps 154
Summary 156
Table of Contents
Chapter 10: Advanced Geometry Object Methods_157
Creating a Python module 157
The_init_.py file 158
Adding advanced analysis components 161
Advanced Polygon object methods 161
Generating random points to represent population 163
Using the functions within a script 164
Creating an XLS using XLWT 170
Summary 173
Chapter 11: Network Analyst and Spatial Analyst with ArcPy_175
The Network Analyst extension 175
Using Network Analyst 176
Creating a Feature Dataset 176
Importing the datasets 177
Creating the Network Dataset 178
Accessing the Network Dataset using ArcPy 179
Breaking down the script 179
The Network Analyst module 181
Accessing the Spatial Analyst Extension 182
Adding elevation to the bus stops 183
Using Map Algebra to generate elevation in feet 184
Adding in the bus stops and getting elevation values 184
The final result 185
Summary 186
Chapter 12: The End of the Beginning_187
Getting field information from feature classes 187
Accessing the ListFields properties 188
List comprehensions 188
Creating the field information functions 189
Querying feature class information 191
Generating File Geodatabases and feature classes 193
Generating a feature class 194
Setting up the script tool parameters 196
Environmentalsettings 199
Resolution and tolerance settings 199
Summary 200
Index _201
|
any_adam_object | 1 |
author | Toms, Silas |
author_facet | Toms, Silas |
author_role | aut |
author_sort | Toms, Silas |
author_variant | s t st |
building | Verbundindex |
bvnumber | BV042812924 |
classification_rvk | ST 690 |
ctrlnum | (OCoLC)922699882 (DE-599)BVBBV042812924 |
discipline | Informatik |
edition | first published |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01467nam a2200373 c 4500</leader><controlfield tag="001">BV042812924</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20160913 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">150908s2015 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">9781783988662</subfield><subfield code="9">978-1-78398-866-2</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)922699882</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV042812924</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-Aug7</subfield><subfield code="a">DE-83</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 690</subfield><subfield code="0">(DE-625)143691:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Toms, Silas</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">ArcPy and ArcGIS - geospatial analysis with Python</subfield><subfield code="b">use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS</subfield><subfield code="c">Silas Toms</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">first published</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Birmingham ; Mumbai</subfield><subfield code="b">PACKT PUBLISHING</subfield><subfield code="c">2015</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">205 Seiten</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Community experience distilled</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Open source</subfield></datafield><datafield tag="600" ind1="0" ind2="7"><subfield code="a">Python</subfield><subfield code="0">(DE-588)118793772</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Geoinformatik</subfield><subfield code="0">(DE-588)7571300-7</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Geoinformatik</subfield><subfield code="0">(DE-588)7571300-7</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">Python</subfield><subfield code="0">(DE-588)118793772</subfield><subfield code="D">p</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028242396&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-028242396</subfield></datafield></record></collection> |
id | DE-604.BV042812924 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:10:12Z |
institution | BVB |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-028242396 |
oclc_num | 922699882 |
open_access_boolean | |
owner | DE-Aug7 DE-83 |
owner_facet | DE-Aug7 DE-83 |
physical | 205 Seiten Illustrationen |
publishDate | 2015 |
publishDateSearch | 2015 |
publishDateSort | 2015 |
publisher | PACKT PUBLISHING |
record_format | marc |
series2 | Community experience distilled Open source |
spelling | Toms, Silas Verfasser aut ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS Silas Toms first published Birmingham ; Mumbai PACKT PUBLISHING 2015 205 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier Community experience distilled Open source Python (DE-588)118793772 gnd rswk-swf Geoinformatik (DE-588)7571300-7 gnd rswk-swf Geoinformatik (DE-588)7571300-7 s Python (DE-588)118793772 p DE-604 HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028242396&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Toms, Silas ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS Python (DE-588)118793772 gnd Geoinformatik (DE-588)7571300-7 gnd |
subject_GND | (DE-588)118793772 (DE-588)7571300-7 |
title | ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS |
title_auth | ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS |
title_exact_search | ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS |
title_full | ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS Silas Toms |
title_fullStr | ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS Silas Toms |
title_full_unstemmed | ArcPy and ArcGIS - geospatial analysis with Python use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS Silas Toms |
title_short | ArcPy and ArcGIS - geospatial analysis with Python |
title_sort | arcpy and arcgis geospatial analysis with python use the arcpy module top automate the analysis and mapping of geospatial data in arcgis |
title_sub | use the ArcPy module top automate the analysis and mapping of geospatial data in ArcGIS |
topic | Python (DE-588)118793772 gnd Geoinformatik (DE-588)7571300-7 gnd |
topic_facet | Python Geoinformatik |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028242396&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT tomssilas arcpyandarcgisgeospatialanalysiswithpythonusethearcpymoduletopautomatetheanalysisandmappingofgeospatialdatainarcgis |