1 / 72

ArcGIS Network Analyst: Automating Workflows with Geoprocessing

ArcGIS Network Analyst: Automating Workflows with Geoprocessing. Melinda Morang Patrick Stevens. Who are we? Network Analyst Product Engineers Who are you? Current Network Analyst users? Current geoprocessing users? Have made geoprocessing models? Have made geoprocessing Python scripts?.

pamanda
Download Presentation

ArcGIS Network Analyst: Automating Workflows with Geoprocessing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ArcGIS Network Analyst: Automating Workflows with Geoprocessing Melinda Morang Patrick Stevens

  2. Who are we? • Network Analyst Product Engineers • Who are you? • Current Network Analyst users? • Current geoprocessing users? • Have made geoprocessing models? • Have made geoprocessing Python scripts? ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  3. Topics to be covered • ArcGIS Network Analyst extension concepts • Geoprocessing framework for network analysis • ModelBuilder: Models and model tools • Python: Scripts and script tools • Ready-to-Use services • Support and resources ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  4. ArcGIS Network Analyst extension concepts ArcGIS Help: What is the ArcGIS Network Analyst extension ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  5. Topics to be covered • ArcGIS Network Analyst extension concepts • Geoprocessingframework for network analysis • ModelBuilder: Models and model tools • Python: Scripts and script tools • Ready-to-Use services • Support and resources ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  6. ArcGIS Network Analyst Extension does transportation analysis Point-to-point routing Optimization Coverage Service Area Route Location-Allocation Vehicle Routing Problem Closest Facility Origin-Destination Cost Matrix ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  7. Network Dataset ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  8. Street Data • Data within your organization • Free data • Data and maps media (prior to 10.3) • TIGER (Census data) • OpenStreetMap • OSM to NDS tools • ArcGIS Editor for OpenStreetMap • Pay for data • HERE or TomTom • Vendor street data processing tools • StreetMap Premium for ArcGIS • Pay for analysis • ArcGIS.com Map Viewer • ArcGIS.com Network Services ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  9. Network Analyst Layer • Composite layer • One layer type for each solver • Analysis properties • Inputs • Outputs ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  10. Demo Network Analyst workflow Performing an analysis manually ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  11. Takeaways Demo: Network Analyst Workflow • Steps for network analysis: • Make Layer • Add Locations • Solve • Work with results ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  12. What is Geoprocessing? ArcGIS Help: The geoprocessing framework ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  13. Topics to be covered • ArcGIS Network Analyst extension concepts • Geoprocessing framework for network analysis • ModelBuilder: Models and model tools • Python: Scripts and script tools • Ready-to-Use services • Support and resources ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  14. What is Geoprocessing? Computation Visualization Storage & Management ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  15. What is Geoprocessing? Computation Geoprocessing • Automating workflows • Modeling & Analysis = ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  16. Using Geoprocessing How? • Performing Network Analysis • Building networks • Publishing services • Managing turns ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  17. Using Geoprocessing Tool dialog Single tool Python window Chain tools Model Script ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  18. Using Geoprocessing Where? Web Model tools Mobile Script tools Desktop System tools ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  19. Network Analyst Workflow • Make or Edit Network Analysis Layer • Add locations to one or more Network Analysis Classes • Solve • Use the results 2 Python 1 3 4 ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  20. Building Geoprocessing Models ArcGIS Help: What is ModelBuilder? ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  21. Topics to be covered • ArcGIS Network Analyst extension concepts • Geoprocessing framework for network analysis • ModelBuilder: Models and model tools • Python: Scripts and script tools • Ready-to-Use services • Support and resources ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  22. Geoprocessing Models • Author using Model Builder • Chain tools to perform a workflow • Use models like ArcToolboxtools • Use models within other models • Apply all Model Builder techniques to network analysis models ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  23. Example: Service Area Model ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  24. Demo Automating workflows with geoprocessing models Performing a network analysis in Model Builder Sharing a model as a tool ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  25. Takeaways Demo: Automating Workflows with Geoprocessing Models • Automate workflows with Model Builder • Share your model as a tool • Make inputs and outputs model parameters • Inputs can be selected by the tool’s user • Outputs will be added to the ArcMap Table of Contents ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  26. Visualizing analysis results in ArcMap • When running models as tools… • The output network analysis layer should be a model parameter • This will add the layer to the ArcMap Table of Contents ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  27. Demo Automating workflows with geoprocessing models Working with inputs and outputs Make a toolbar button ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  28. Takeaways Demo: Automating Workflows with Geoprocessing Models • Run a model as a button on a toolbar • Use the Select Data tool to access NA sublayers • Work with external data like CSV files ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  29. Post-processing your analysis • Use your analysis result as an input to another tool • The Select Data tool accesses individual sublayers ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  30. Writing Python Scripts ArcGIS Help: What is Python? ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  31. Topics to be covered • ArcGIS Network Analyst extension concepts • Geoprocessing framework for network analysis • ModelBuilder: Models and model tools • Python: Scripts and script tools • Ready-to-Use services • Support and resources ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  32. Python Scripts • Conditional logic • Loops • Cursors, creating geometry • Built-in and third party modules • Cross-platform ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  33. Python Scripts • ArcPy site package • Network Analyst module • Other geoprocessing tools • Other useful functions and classes • Describe ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  34. Network Analyst Module arcpy.na • 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 ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  35. Python Script: Basic Building Blocks Import the arcpymodule ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  36. Python Script: Basic Building Blocks Check out the Network Analyst Extension ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  37. Python Script: Network Analyst Workflow Make/edit a network analysis layer ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  38. Python Script: Network Analyst Workflow Add locations to network analysis classes ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  39. Python Script: Network Analyst Workflow Solve the network analysis layer ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  40. Python Script: Network Analyst Workflow Use the results ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  41. Working with analysis layers within scripts • The network layer is retrieved as a layer object from the result object returned by Make<solver>Layer ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  42. Working with analysis layers within scripts • Edit the solver properties of an existing layer object ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  43. Accessing sublayers in scripts • The Select Data tool is not meant for python scripting • arcpy.na.GetNAClassNamesshould be used • Renamed or localized sublayer names will work in the script ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  44. Working with sublayers in python • Access individual sublayers using ListLayers on the NA layer. • Use sublayers as input to other tools (CopyFeatures, Join, Buffer, etc.). • Use a SearchCursor to access the rows within a sublayer. ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  45. Working with analysis layers within scripts • Easily specify field mappings in Add Locations with arcpy.na.NAClassFieldMappings ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  46. Saving analysis results • The in-memory network analysis layer can be persisted using the SaveToLayerFile tool in the management module • Layer files can be dragged from disk into ArcMap ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  47. Topics to be covered • ArcGIS Network Analyst extension concepts • Geoprocessing framework for network analysis • ModelBuilder: Models and model tools • Python: Scripts and script tools • Ready-to-Use services • Support and resources ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  48. Demo Automating workflows with python scripts Performing a network analysis with a python script ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  49. Takeaways Demo: Automating Workflows with Python Scripts • Run simple python commands in ArcMap’spython window • Export models to python scripts • Persist the in-memory network analysis layer with SaveToLayerFile • Run scripts from a command prompt outside of ArcMap ArcGIS Network Analyst: Automating Workflows with Geoprocessing

  50. Building Script Tools ArcGIS Help: What is a script tool? ArcGIS Network Analyst: Automating Workflows with Geoprocessing

More Related