万本电子书0元读

万本电子书0元读

顶部广告

ArcPy and ArcGIS - Second Edition电子书

售       价:¥

39人正在读 | 0人评论 9.8

作       者:Silas Toms,Dara O'Beirne

出  版  社:Packt Publishing

出版时间:2017-07-07

字       数:29.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Use Python modules such as ArcPy, ArcREST and the ArcGIS API for Python to automate the analysis and mapping of geospatial data. About This Book ? Perform GIS analysis faster by automating tasks. ? Access the spatial data contained within shapefiles and geodatabases and transform between spatial reference systems. ? Automate the mapping of geospatial analyses and production of map books. Who This Book Is For If you are a GIS student or professional who needs an understanding of how to use ArcPy to reduce repetitive tasks and perform analysis faster, this book is for you. It is also a valuable book for Python programmers who want to understand how to automate geospatial analyses and implement ArcGIS Online data management. What You Will Learn ? Understand how to integrate Python into ArcGIS and make GIS analysis faster and easier. ? Create Python * using ArcGIS ModelBuilder. ? Learn to use ArcGIS online feature services and the basics of the ArcGIS REST API ? Understand the unique Python environment that is new with ArcGIS Pro ? Learn about the new ArcGIS Python API and how to use Anaconda and Jupyter with it ? Learn to control ArcGIS Enterprise using ArcPy In Detail ArcGIS allows for complex analyses of geographic information. The ArcPy module is used to * these ArcGIS analyses, providing a productive way to perform geo-analyses and automate map production. The second edition of the book focuses on new Python tools, such as the ArcGIS API for Python. Using Python, this book will guide you from basic Python *ing to advanced ArcPy * tools. This book starts off with setting up your Python environment for ArcGIS automation. Then you will learn how to output maps using ArcPy in MXD and update feature class in a geodatabase using arcpy and ArcGIS Online. Next, you will be introduced to ArcREST library followed by examples on querying, updating and manipulating ArcGIS Online feature services. Further, you will be enabling your *s in the browser and directly interacting with ArcGIS Online using Jupyter notebook. Finally, you can learn ways to use of ArcPy to control ArcGIS Enterprise and explore topics on deployments, data quality assurances, data updates, version control, and editing safeguards. By the end of the book, you will be equipped with the knowledge required to create automated analysis with administration reducing the time-consuming nature of GIS. Style and approach The book takes a pragmatic approach, showing ways to automate repetitive tasks and utilizing features of ArcPy with ArcGIS Pro and ArcGIS online.
目录展开

Title Page

Second Edition

Copyright

ArcPy and ArcGIS

Second Edition

Credits

Foreword

About the Authors

About the Reviewers

www.PacktPub.com

Why subscribe?

Customer Feedback

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

Downloading the color images of this book

Errata

Piracy

Questions

Introduction to Python for ArcGIS

Python as a programming language

Interpreted language

Standard (built-in) library

Glue language

Wrapper modules

The basics of Python programming

Import statements

Variables

For loops

If/Elif/Else statements

While statements

Comments

Data types

Strings

Integers

Floats

Data containers

Zero-based indexing

Lists

Tuples

Dictionaries

Other important concepts

Indentation

Functions

Keywords

Namespaces

Important Python modules

The OS (operating system) module

The sys (Python system) module

The CSV, XLRD, and XLWT modules

Commonly used built-in functions

Standard library modules

How Python executes a script

What is a Python script?

Python interpreter

Where is the Python interpreter located?

Which Python interpreter should be used?

How does the machine know where the interpreter is?

Make Python scripts executable when clicked

Integrated Development Environments (IDEs)

IDLE

PythonWin

Atom, Notepad++, and Sublime Text

IDE summary

Python folder structure

Where modules reside

Installing a third-party module

Using Python's sys module to add a module

The sys.path.append method

Summary

Creating the First Python Script

Prerequisites

ModelBuilder

Creating a model and exporting to Python

Modeling the Select and Buffer tools

Adding in the Intersect tool

Tallying the analysis results

Exporting the model and adjusting the script

The Automatically generated script

File paths in Python

String manipulation

String manipulation method 1: string addition

String manipulation method 2: string formatting #1

String manipulation method 3: string formatting #2

The ArcPy tools

The Intersect tool

Adjusting the script

Adding the CSV module to the script

Accessing the data: using a cursor

Exceptions and tracebacks

Overwriting files

The final script

Summary

ArcPy Cursors - Search, Insert, and Update

Python functions – avoid repeating code

Technical definition of functions

The first function

Functions with parameters

Using functions to replace repetitive code

The createCSV function

Creating an XLS using XLWT

The data access module

Search cursors

Attribute field interactions

Update cursors

Updating the shape field

Adjusting a point location

Deleting a row using an Update cursor

Using an Insert cursor

Inserting a polyline geometry

Inserting a polygon geometry

Summary

ArcPy Geometry Objects and Cursors

ArcPy geometry object classes

ArcPy Point objects

ArcPy Array objects

ArcPy Polyline objects

ArcPy Polygon objects

Polygon object buffers

Other Polygon object methods

The AsShape method

Generic geometry object

ArcPy PointGeometry objects

Rewriting the bus stop analysis

Adding to the analysis

Summary

Creating a Script Tool

Adding dynamic parameters to a script

Accessing the passed parameters

Displaying script messages using arcpy.AddMessage

Adding dynamic components to the script

Creating a script tool

Labeling and defining parameters

Adding data types

Adding the Bus Stop feature class

Adding the Census Block feature class

Adding the Census Block field

Adding the output spreadsheet

Adding the spreadsheet field names

Adding the SQL Statement

Adding the bus stop fields

Inspecting the final script

Running the script tool

Summary

The arcpy.mapping Module

Using ArcPy with map documents

Interacting with map document elements

Data frames

Pan and zoom methods

Using the arcpy.mapping module to control layer objects

Layer object methods and properties

Data source

Name or description

Visibility

Definition queries

Inspecting and replacing layer sources

The ListBrokenDataSources method

Fixing the broken links

Fixing the links of individual layers

Exporting to PDF from an MXD

Automated map document production

The variables

Connection to the map document

Data frames

Access the layers

The layout elements

Generating a buffer from the bus stops feature class

Intersecting the bus stop buffer and census blocks

Format a dynamic definition query

Updating the layout elements

Exporting the adjusted map to PDF

The Results - Dynamic maps

Summary

Advanced Analysis Topics

Using Network Analyst

Creating a network dataset

Importing the datasets

Creating the network dataset

Accessing the network dataset using ArcPy

Breaking down the script

The Network Analyst module

Accessing the Spatial Analyst extension

Adding elevation to the bus stops

Using Map algebra to generate elevation in feet

Adding in the bus stops and getting elevation values

The final result

Summary

Introduction to ArcGIS Online

ArcGIS Online

Signing up for an account

Exploring the interface

The My Organization tab

The My Content tab

The Add Item option

Features from services

Features from files

The Create tab

The Groups tab

The Map and Scene tabs

Publishing from an MXD

Styling the layers

Publishing the layers

The Share As menu

Service Editor

The Item Description option

Analyze

Updates

Developer account

Summary

ArcPy and ArcGIS Online

ArcGIS Online REST services

Exploring ArcGIS REST services

URL parameters

Feature sets

Feature set methods

ArcGIS Online tokens

Putting it all together

Summary

ArcREST Python Package

Introducing the ArcREST module

Installing ArcREST

Introduction to the ArcREST package structure

ArcREST security handler

ArcGIS Online administration

Querying hosted feature services

Querying all features and saving as a feature class

Adding a field to a feature service

Adding domains to fields in a hosted feature service

Appending a feature class to a feature service

Updating records in a feature service

Summary

ArcPy and ArcGIS Pro

Introducing ArcGIS Pro

Installing and configuring ArcGIS Pro

The ArcGIS Pro Python window

Python 2.7 and Python 3.5 with ArcPro

Conda and ArcGIS Pro

Running standalone scripts with Conda

Reviewing Conda basics

Summary

ArcGIS API for Python

Introduction to the ArcGIS API for Python

Installing and configuring Anaconda with Jupyter

Install the ArcGIS Python API

Creating a Jupyter Notebook

Starting the ArcGIS API for Python

Adding an item to a web map

Importing a CSV with pandas

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部