Jeff Barrette Jeff Moulds

Slides:



Advertisements
Similar presentations
Publishing GIS Services to ArcGIS for Server
Advertisements

Esri UC 2014 | Technical Workshop | Automating Cache Workflows and Tile Usage Heat Maps Eric J. Rodenberg.
Sharing Geographic Content
1/36. 2/36 Something cool …
Troubleshooting Replication and Geodata Services
Fundamentals of working with geographic data
Network Analysis with Python
Python: An Introduction
Python Map Automation: Introduction to arcpy.mapping / arcpy.mp
Publishing to ArcGIS for Server
Enabling High-Quality Printing in Web Applications
Leveraging ArcGIS Online Elevation and Hydrology Services
Advance Map Automation With Python
Esri Defense Mapping: Cartographic Production
Introduction to Web AppBuilder for ArcGIS: JavaScript Apps Made Easy
Esri Production Mapping: Automate Map Production With ArcGIS Workflow Manager Joe Sheffield.
Esri UC 2014 | Technical Workshop | Python Map Automation – Beyond the Basics of arcpy.mapping Jeff Barrette Jeff Moulds.
Technical Workshops | Esri International User Conference San Diego, California Supporting High-Quality Printing in Web Applications with ArcGIS 10.1 for.
Esri UC 2014 | Technical Workshop | Designing and Using Cached Map Services Tom Brenneman & Eric Rodenberg.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Supporting High-Quality.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Building Map Books.
Working with Feature Services Gary MacDougall Russell Brennan.
Esri UC 2014 | Technical Workshop | Creating Geoprocessing Services Kevin Hibma.
Desktop Mapping: Building Map Books Jeff Barrette Michael Grossman.
Developing Cross Platform Apps with the ArcGIS Runtime SDK for Qt
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Python Map Automation.
Publishing GIS Services to ArcGIS Server
Esri UC 2014 | Technical Workshop | Python Map Automation – Introduction to arcpy.mapping Michael Grossman Jeff Barrette.
Sharing Maps and Layers to Portal for ArcGIS Melanie Summers, Tom Shippee, Ty Fitzpatrick.
Packaging Network and Geocoding Data for Navigator Mark Bockenhauer & Frank Kish.
ArcGIS for Server Security: Advanced
ArcGIS for the Military: Creating and Sharing Military Overlays
Bill Major G67940_UC15_Tmplt_16x9_4-15
Accessing Spatial Databases in ArcGIS using Query Layers
Configuring Portal for ArcGIS to Perform Network Analysis
ArcGIS Data Reviewer: Assessing Positional Accuracy
ArcGIS Pro Mapping and Visualization
ArcGIS Workflow Manager: Advanced Workflows and Concepts
Desktop Mapping: Building Map Books
App Configuration, Customization or Development
Working with Feature Layers
Geocoding with ArcGIS Online
Collector: Authoring Maps for Offline Data Collection
PYTHON: AN INTRODUCTION
ArcGIS for Server: What’s New
Shankar Chandrasekaran
Creating Geoprocessing Services
Introduction to Fire Incident Maps
Python Map Automation – Beyond the Basics of arcpy.mapping
Building Map Books in ArcGIS
Automating Geodatabase Administration with Python
Web AppBuilder for ArcGIS
Best Practices for Designing Effective Map Services: Case Studies
Python Map Automation – Beyond the Basics of arcpy.mapping
Network Analysis using Python
Best Practices: Authoring Maps for Field Use
PYTHON: BUILDING GEOPROCESSING TOOLS
ArcGIS Online: Items Administration and Group Sharing
Building Map Books in ArcGIS
Tile layers, map image layers, and on-premises Web GIS
ModelBuilder – Getting Started
Syncing Over the Web with Versioned Data
Publishing image services in ArcGIS
Designing and Using Cached Map Services
Desktop Mapping: Building Map Books
ArcGIS Pro: An Introduction Overview
Esri Production Mapping: An Introduction
GeoPlanner: Site Suitability Analysis
The Sweet Spot for Spatial Analysis: Using Online Content
Presentation transcript:

Jeff Barrette Jeff Moulds Python Map Automation: Advanced arcpy.mapping and Migration to ArcGIS Pro Jeff Barrette Jeff Moulds

arcpy.(m)a(p)ping samples http://esriurl.com/8899

DDPwithDynamicTablesAndGraphs_10.1_v1

MultipleElementLayoutManager_10.0_v1

GenerateMapBookWithIndexPages_10_v2

arcpy.(m)a(p)ping samples http://esriurl.com/8899

High quality vector output (e.g. PDF) Advanced Web Map Printing with Python Web API / Web AppBuilder High quality vector output (e.g. PDF) arcpy.mapping

Three Web Map printing development paths ArcGIS JavaScript Web API – Use either the custom python print service or the out of the box print service Web AppBuilder + out of the box print service. - No coding! 1 2 3 Web AppBuilder + custom python print service. - No JavaScript or html required Related Session: Enabling High-Quality Printing in Web Applications (Wednesday @ 10:30 Demo Theater 6) Also search your agenda for “Web AppBuilder” – many sessions!

Advanced server printing with arcpy.mapping Full capabilities of arcpy.mapping: Swap out service layers for local vector data for vector PDF output Export using advanced options Export data driven pages Export to PDF and insert additional pages (title page, reports, etc.) Controlling the appearance of the legend Etc. Return a printer-friendly output file (PDF, PNG, etc.)

Advanced server printing with arcpy.mapping Build web apps with customized versions of the out-of-the-box print service Arcpy.mapping method for converting Web Maps to Map Documents: ConvertWebMapToMapDocument (webmap_json, {template_mxd}, {notes_gdb}, {extra_conversion_options}) Supports client side graphics in your web app. Web API / Web AppBuilder High-quality vector output (e.g. PDF) arcpy.mapping. ConvertWebMapToMapDocument Online help and examples http://esriurl.com/4600

Demo: Web app to export vector PDF using arcpy.mapping Output or print vector layers instead of “flat” image of service layers Vector layers will be staged in template map document Output PDF viewed in Adobe Reader: Map service tiled cache (low dpi) Vector data (or high dpi image)

Demo: Web app to export vector PDF using arcpy.mapping Python code used in custom GP service Get web map JSON Get template MXD 1 Create new MXD based on web map Remove service layers Export PDF Output file of job

Web app to export vector PDF using arcpy.mapping Two tutorials in the help: Basic vector web map printing: http://esriurl.com/4601 Advanced web map printing: http://esriurl.com/4602 Output format Georeferencing Layers in map Layers in legend

Publishing map services with arcpy.mapping arcpy.mapping.CreateMapSDDraft(map_document, out_sddraft, service_name, {server_type}, {connection_file_path}, {copy_data_to_server}, {folder_name}, {summary}, {tags}) Workflow to convert map document to map service. Use python scripts for: Scheduled service updates. E.g. nightly. Publishing automated analysis results. Batch publishing. Create SDDraft file (and optionally edit XML) arcpy.mapping.CreateMapSDDraft() Reference & prepare MXDs arcpy.mapping.MapDocument() Stage and Publish Map Service (arcpy server GP tools) arcpy.StageService_server() arcpy.UploadServiceDefinition_server()

Publishing map services with arcpy.mapping Sample script: CreateMapSDDraft Reference MXD Server connection, service properties, etc. Create and analyze sddraft for errors, warnings, etc. Stage and publish Map Service Online help and samples: http://esriurl.com/4598 Publish and overwrite a hosted feature service on ArcGIS.com blog post: http://esriurl.com/9754

Publishing other service types with python Create geoprocessing services arcpy.CreateGPSDDraft() Create image services arcpy.CreateImageSDDraft() Create geocoding services arcpy.CreateGeocodeSDDraft()

Migrating to ArcGIS Pro arcpy.mp http://esriurl.com/9785

Function for importing 10.x documents into ArcGIS Pro Projects ArcGISProject.importDocument(document_path, {include_layout}) ArcGIS Pro Projects .MXDs … Looping through MXDs in a folder. Reference a template APRX. Import MXD into the APRX. Save the project.

Function for importing 10.x documents into ArcGIS Pro Projects ArcGISProject.importDocument(document_path, {include_layout}) .MXDs ArcGIS Pro Project .SXDs .3DDs DEMO

Updating Data Sources in ArcGIS Pro X .APRXs Project/Map/Layer/Table/LayerFile.updateConnectionProperties (current_connection_info, new_connection_info, {auto_update_joins_and_relates}…) Find this path: Replace it with this path:

Updating Data Sources advanced concepts – Layer.connectionProperties New at Pro The entire layer data source object model is exposed as a Python dictionary. Use if you need more fine grained control that what is available in Project/Map/Layer/Table/LayerFile.updateConnectionproperties() Access a layer in a map. Get layer’s connection properties. File Geodatabase layer connection properties dictionary DEMO

Two ways to use the connection properties dictionary – enterprise geodatabase examples Write directly to the dictionary Get layer connection properties Update dictionary Set layer connection properties UpdateConnectionProperties will also do find and replace for full and partial dictionaries Old database info New database info Set layer connection properties

Please take our Survey Find your event in the Esri Events App Your feedback allows us to help maintain high standards and to help presenters Find your event in the Esri Events App Find the session you want to review Scroll down to the bottom of the session Answer survey questions and submit