Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part...

123
Network Analyst: Automating Workflows with Geoprocessing Melinda Morang Patrick Stevens

Transcript of Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part...

Page 1: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst:

Automating Workflows with

Geoprocessing

Melinda Morang

Patrick Stevens

Page 2: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

•Who are we?

-Network Analyst Product Engineers

Network Analyst: Automating Workflows with Geoprocessing

Page 3: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Who are you?

Network Analyst: Automating Workflows with Geoprocessing

Page 4: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Who are you?

- Are you current Network Analyst users?

Network Analyst: Automating Workflows with Geoprocessing

Page 5: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Who are you?

- Are you current Network Analyst users?

- Are you current geoprocessing users?

Network Analyst: Automating Workflows with Geoprocessing

Page 6: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Who are you?

- Are you current Network Analyst users?

- Are you current geoprocessing users?

- Have you made geoprocessing models?

Network Analyst: Automating Workflows with Geoprocessing

Page 7: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Who are you?

- Are you current Network Analyst users?

- Are you current geoprocessing users?

- Have you made geoprocessing models?

- Have you made geoprocessing Python scripts?

Network Analyst: Automating Workflows with Geoprocessing

Page 8: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Why should you use geoprocessing?

Network Analyst: Automating Workflows with Geoprocessing

Page 9: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Why should you use geoprocessing?

- Automate repetitive tasks

Network Analyst: Automating Workflows with Geoprocessing

Page 10: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Why should you use geoprocessing?

- Automate repetitive tasks

- Reduce mistakes

Network Analyst: Automating Workflows with Geoprocessing

Page 11: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Why should you use geoprocessing?

- Automate repetitive tasks

- Reduce mistakes

- Share analysis capabilities

Network Analyst: Automating Workflows with Geoprocessing

Page 12: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Why should you use geoprocessing?

- Automate repetitive tasks

- Reduce mistakes

- Share analysis capabilities

- Increase efficiency

Network Analyst: Automating Workflows with Geoprocessing

Page 13: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Why should you use geoprocessing?

- Automate repetitive tasks

- Reduce mistakes

- Share analysis capabilities

- Increase efficiency

- Expand capabilities of ArcGIS

Network Analyst: Automating Workflows with Geoprocessing

Page 14: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 15: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 16: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 17: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 18: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 19: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 20: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 21: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst Extensionsolvers

Service Area

Create drive-time areas

Location-Allocation

Choose best facilities

Vehicle Routing

Problem

Plan routes

Route

Directions

Closest Facility

Find nearest

Origin-Destination

Cost Matrix

Generate origin destination

cost matrix

Network Analyst: Automating Workflows with Geoprocessing

Page 22: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network dataset

Network Analyst: Automating Workflows with Geoprocessing

Page 23: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Network Analyst layer

Page 24: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst layer

Network Analyst: Automating Workflows with Geoprocessing

• One layer type for each solver

Page 25: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst layer

• One layer type for each solver

• Holds the analysis

- Analysis properties

- Inputs

- Outputs

Network Analyst: Automating Workflows with Geoprocessing

Page 26: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Performing an analysis manually

Network Analyst

workflow

Network Analyst: Automating Workflows with Geoprocessing

Demo

Page 27: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Steps for network analysis:

-Make an analysis layer

-Add locations

-Solve

-Work with results

Network Analyst: Automating Workflows with Geoprocessing

TakeawaysDemo: Network Analyst Workflow

Page 28: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 29: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 30: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

What is

Geoprocessing?

ArcGIS Help:

The geoprocessing framework

Page 31: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Storage & Management

What is Geoprocessing?

Page 32: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Storage & ManagementVisualization

What is Geoprocessing?

Page 33: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Storage & ManagementVisualization

Computation

What is Geoprocessing?

Page 34: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Computation

=Geoprocessing

•Automating workflows

•Modeling & Analysis

What is Geoprocessing?

Page 35: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Geoprocessing tool types

Page 36: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

System tools Geoprocessing tool types

Page 37: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

System tools

Model tools

Geoprocessing tool types

Page 38: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

System tools

Script tools

Model tools

Geoprocessing tool types

Page 39: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Model

Single tool

Chain tools

Using Geoprocessing tools

Python window

Tool dialog

Script

Page 40: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Network Analyst

system tools

Page 41: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

• Performing Network Analysis

Network Analyst

system tools

Page 42: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

• Performing Network Analysis

• Building networks

Network Analyst

system tools

Page 43: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

• Performing Network Analysis

• Building networks

• Managing turns

Network Analyst

system tools

Page 44: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Using

Geoprocessing

• Performing Network Analysis

• Building networks

• Managing turns

Page 45: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Using

Geoprocessing

• Performing Network Analysis

• Building networks

• Managing turns

• Publishing services

Page 46: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 47: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 48: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Building

Geoprocessing

Models

Network Analyst: Automating Workflows with Geoprocessing

ArcGIS Help:

What is ModelBuilder?

Page 49: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Geoprocessing

Models

Page 50: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Geoprocessing

Models

• Author using Model Builder

Page 51: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Geoprocessing

Models

• Chain tools to perform a

workflow

Page 52: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Geoprocessing

Models

• Use models like ArcToolbox

tools

Page 53: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Geoprocessing

Models

• Use models within other

models

Page 54: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Geoprocessing

Models

• Apply all Model Builder

techniques to network analysis

models

Page 55: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Performing a network analysis

in Model Builder

Sharing a model as a tool

Automating

workflows with

geoprocessing

models

Network Analyst: Automating Workflows with Geoprocessing

Demo

Page 56: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Automate workflows with Model Builder

• Make inputs and outputs model parameters

• Run your model as a tool

• Share models and projects

Network Analyst: Automating Workflows with Geoprocessing

TakeawaysDemo: Automating Workflows with Geoprocessing Models

Page 57: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• When running models as tools…

- The output network analysis layer should be a model parameter- This will add the layer to the Table of Contents

Network Analyst: Automating Workflows with Geoprocessing

Visualizing analysis results in ArcMap

Page 58: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Use your analysis result as an input to another tool

- The Select Data tool accesses individual sublayers

Network Analyst: Automating Workflows with Geoprocessing

Post-processing your analysis

Page 59: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Use your analysis result as an input to another tool

- The Select Data tool accesses individual sublayers

Network Analyst: Automating Workflows with Geoprocessing

Post-processing your analysis

Page 60: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Automating

workflows with

geoprocessing

models

Network Analyst: Automating Workflows with Geoprocessing

Demo

Working with inputs and outputs

Page 61: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Include the network analysis workflow as part of

a larger workflow

• Use the Select Data tool to access sublayers

• Work with external data like CSV files

Network Analyst: Automating Workflows with Geoprocessing

TakeawaysDemo: Automating Workflows with Geoprocessing Models

Page 62: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 63: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 64: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Writing Python

Scripts

ArcGIS Help:

What is Python?

Page 65: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

Page 66: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• Conditional logic

Page 67: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• Conditional logic

• Loops

Page 68: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• Conditional logic

• Loops

• Cursors, creating geometry

Page 69: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• Conditional logic

• Loops

• Cursors, creating geometry

• Built-in and third party modules

Page 70: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• ArcPy site package

Page 71: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• ArcPy site package

- Network Analyst module

Page 72: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• ArcPy site package

- Network Analyst module

- Other geoprocessing tools

Page 73: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• ArcPy site package

- Network Analyst module

- Other geoprocessing tools

- Other useful functions and

classes

- Describe

Page 74: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• Simplify access to Network

Analyst functionality from

Python

arcpy.na

Page 75: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python scripts

• Simplify access to Network

Analyst functionality from

Python

• Edit the analysis properties of

network analysis layers

- No need to re-create layers

- Speed up execution

- Simplify script logic

arcpy.na

Page 76: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Python Script: Basic Building Blocks

Page 77: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Import the arcpy site package

Page 78: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Check out Network Analyst Extension license

Page 79: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Create/edit a Network Analysis layer

Page 80: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Create/edit a Network Analysis layer

Page 81: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Add locations to analysis classes

Page 82: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Run the analysis

Page 83: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Use the results

Page 84: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Edit the properties on an existing layer

Page 85: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Edit the properties on an existing layer

Page 86: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Edit the properties on an existing layer

Page 87: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Access sublayer with ListLayers

Page 88: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Access sublayer with ListLayers

Page 89: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Access sublayer with ListLayers

Page 90: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Use sublayers as input to other tools (CopyFeatures, Join, Buffer, etc.).

Network Analyst: Automating Workflows with Geoprocessing

Access sublayer with ListLayers

Page 91: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Use sublayers as input to other tools (CopyFeatures, Join, Buffer, etc.).

• Use a SearchCursor to access the rows within a sublayer.

Network Analyst: Automating Workflows with Geoprocessing

Access sublayer with ListLayers

Page 92: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Field mapping

Page 93: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Field mapping

Page 94: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Field mapping

Page 95: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Set the output workspace

Page 96: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Python in ArcGIS Pro vs. ArcMap

Network Analyst: Automating Workflows with Geoprocessing

Page 97: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Pro: python 3.4

• ArcMap: python 2.7

Python in ArcGIS Pro vs. ArcMap

Network Analyst: Automating Workflows with Geoprocessing

Page 98: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Pro: python 3.4

• ArcMap: python 2.7

• General migration help

- http://pro.arcgis.com/en/pro-app/arcpy/get-started/python-

migration-for-arcgis-pro.htm

Python in ArcGIS Pro vs. ArcMap

Network Analyst: Automating Workflows with Geoprocessing

Page 99: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Network analysis migration help

- http://pro.arcgis.com/en/pro-app/arcpy/network-

analyst/migratingfrom10xarcpynetworkanalyst.htm

Python in ArcGIS Pro vs. ArcMap

Network Analyst: Automating Workflows with Geoprocessing

Page 100: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Network analysis migration help

- http://pro.arcgis.com/en/pro-app/arcpy/network-

analyst/migratingfrom10xarcpynetworkanalyst.htm

• Unsupported and deprecated tools

• Changes for working with layer object

Python in ArcGIS Pro vs. ArcMap

Network Analyst: Automating Workflows with Geoprocessing

Page 101: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Setting up a development environment (IDE)

- http://pro.arcgis.com/en/pro-app/arcpy/get-started/installing-

python-for-arcgis-pro.htm

Python in ArcGIS Pro vs. ArcMap

Network Analyst: Automating Workflows with Geoprocessing

Page 102: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Performing a network analysis

with a python script

Automating

workflows with

python scripts

Demo

Page 103: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Run any geoprocessing workflow in stand-alone python

• Find Code samples in the tool help

• Run simple python commands in the python window

Network Analyst: Automating Workflows with Geoprocessing

TakeawaysDemo: Automating Workflows with Python Scripts

Page 104: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

ArcGIS Help:

What is a script tool?

Building Script

Tools

Page 105: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Work with your scripts through a user interface

Network Analyst: Automating Workflows with Geoprocessing

Script tools

Page 106: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Work with your scripts through a user interface

• Use Script tools like any other tool within ArcToolbox

- Use script tools in models and vice versa

Network Analyst: Automating Workflows with Geoprocessing

Script tools

Page 107: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• If a network analysis layer is the output use arcpy.SetParameterAsText(…)

Network Analyst: Automating Workflows with Geoprocessing

Add outputs from script tool to ArcMap

Page 108: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• If a network analysis layer is the output use arcpy.SetParameterAsText(…)

Network Analyst: Automating Workflows with Geoprocessing

Add outputs from script tool to ArcMap

Page 109: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Create a script tool to provide

a UI for a Python script

Use tool validation to

customize the UI

Creating a

script tool

Network Analyst: Automating Workflows with Geoprocessing

Demo

Page 110: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

• Provide a user interface for python scripts by making a

script tool

• Use derived output and arcpy.SetParameterAsText() to add results to the map

• Use tool validation to customize your script tool’s user

interface

Network Analyst: Automating Workflows with Geoprocessing

TakeawaysDemo: Creating a Script Tool

Page 111: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 112: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

ArcGIS Network Analyst extension concepts

Geoprocessing and network analysis

ModelBuilder: Models and model tools

Python: Scripts and script tools

Support and resources

Network Analyst: Automating Workflows with Geoprocessing

Topics to be covered

Page 113: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Summary

Network Analyst: Automating Workflows with Geoprocessing

Page 114: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Summary

Network Analyst: Automating Workflows with Geoprocessing

• Use the geoprocessing

framework for network analyses

- Network Analyst Tools

- Models and Model tools

- Script and Script tools

Page 115: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Summary

Network Analyst: Automating Workflows with Geoprocessing

• Automate workflows

Page 116: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Summary

Network Analyst: Automating Workflows with Geoprocessing

• Incorporate network analysis in

larger process

Page 117: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Resources

Page 118: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Resources• Network Analyst tutorials

- ArcMap

- ArcGIS Pro

Page 120: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Resources• ArcGIS Network Analyst Extension Discussion Forum

Page 121: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Network Analyst: Automating Workflows with Geoprocessing

Resources• Python for ArcGIS resource center

Page 122: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Employee of the Year Award

Melinda Morang

Esri presents the

to

Signature of Manager

Page 123: Network Analyst: Automating Workflows with …...• Include the network analysis workflow as part of a larger workflow • Use the Select Data tool to access sublayers • Work with

Please Take Our Survey on the Esri Events App!

Select the session you attended

Scroll down to find the survey

Complete Answersand Select “Submit”

Download the Esri Events app and find

your event

Network Analyst: Automating Workflows with Geoprocessing