Working with Printing Service: Advanced Topics JEFF MOULDS TANU HOQUE

Similar documents
Enabling High-Quality Printing in Web Applications. Tanu Hoque & Scott Moore

Enabling High-Quality Printing in Web Applications. Tanu Hoque & Jeff Moulds

Enabling High-Quality Printing in Web Applications

Enabling High-Quality Printing in Web Applications

Enabling High-Quality Printing in Web Applications. Tanu Hoque & Craig Williams

Python Map Automation Beyond the Basics of arcpy.mapping

Python: Beyond the Basics. John Lam Esri China (Hong Kong) Richard Chau Esri China (Hong Kong)

Working with Feature Layers. Russell Brennan Gary MacDougall

Web AppBuilder Presented by

Web App Builder: Code-free Development. Adam Ziegler, Esri-Northeast, Local Government Team

ArcGIS for Server: What s New. Philip Heede, Jay Theodore

Implementing a Hybrid Approach to ArcGIS. Philip McNeilly and Margaret Jen

ArcGIS Runtime SDKs Building Offline Apps. Nick Furness

Web AppBuilder for ArcGIS: JavaScript Apps Made Easy

No Programming Required Create web apps rapidly with Web AppBuilder for ArcGIS

Introduction to Web AppBuilder for ArcGIS: JavaScript Apps Made Easy

Using Geoprocessing Services in Web Applications. Kelly Hutchins, Kevin Hibma, Monica Joseph

ArcGIS Enterprise: Sharing Imagery. Zikang Zhou Imagery and Raster team

Configuring ArcGIS Enterprise in Disconnected Environments

Python Map Automation: Introduction to arcpy.mapping / arcpy.mp. Jeff Barrette

What is map scripting (aka arcpy.mapping arcpy arcpy.mapping)? mapping)? mapping)? A new mapping module that is part of the geoprocessing ArcPy site s

Sharing Web Layers and Services in the ArcGIS Platform. Melanie Summers and Ty Fitzpatrick

Data Interoperability An Introduction

Extending ArcGIS for Server. Jon Satchwell, Esri Switzerland Cédric Despierre Corporon, Esri France

Real-Time GIS: Leveraging Stream Services

What s New in ArcGIS 10.3 for Server. Tom Shippee Esri Training Services

Desktop Mapping: Creating Vector Tiles. Craig Williams

Survey123 for ArcGIS: An Introduction. James Tedrick Erin Densford

Creating Geoprocessing Services and Web Tools. Darren Baird, PE, Esri

Automating Distributed Raster Analysis using the Image Server REST API. Jie Zhang Zikang Zhou Demo Theater 2 - Oasis 1

Best Practices for Designing Effective Map Services

Designing and Using Cached Map Services

Building Basemaps: MapCaches and VectorTiles. Matthias Schenker Gerhard Trichtl

ArcGIS Enterprise: Advanced Topics in Administration. Thomas Edghill & Moginraj Mohandas

ArcGIS Enterprise Extending Services. Bill Major

ArcGIS Enterprise Security: An Introduction. Gregory Ponto & Jeff Smith

Citizen Reporter App for DuPage County. Illinois GIS Association Annual Conference Ryan Nosek, GIS Analyst, DuPage County October 18 th, 2016

ArcGIS Enterprise: Architecture & Deployment. Anthony Myers

Customizing Web AppBuilder using Third Party Products. Presented to: Esri Canada Toronto UC Presented by: Maura Daffern October 11 th, 2018

ArcGIS Pro: What s New in Editing and Data Management

Developing Imagery Apps Using the ArcGIS API for JavaScript and WebApp Builder. Naila Khan, Chayanika Khatua

ArcGIS Enterprise: Configuring Backups, Disaster Recovery, and Replication. Harrold Sompotan and Patrick Jackson

How To Configure & Use Insights for ArcGIS ARAVIND SIVASAILAM MATT THOMAS

What s New in ArcGIS 10.4 for Server

ArcGIS Desktop The Road Ahead. Amadea Azerki

Bringing your Data to Life in the ArcGIS API for JavaScript: Vector Tiles. Craig Williams &

Introduction to Your First ArcGIS Enterprise Deployment. Thomas Edghill & Jonathan Quinn

Understanding and using Metadata across the ArcGIS Platform. Aleta Vienneau Marten Hogeweg

ArcGIS Data Reviewer: Ensuring Accurate and Complete Data to Meet Your Mission. John Grammer Kevin Pusey

ArcGIS Online. The Road Ahead Geoff Mortson

ArcGIS for Server: Publishing and Using Map Services

Creating Mosaic Datasets and Publishing Image Services using Python

ArcGIS Enterprise: Performance and Scalability Best Practices. Darren Baird, PE, Esri

ArcGIS Viewer for Flex An Introduction

Leveraging metadata standards in ArcGIS to support Interoperability. Aleta Vienneau and Marten Hogeweg

ArcGIS Online: Developing Web Applications with Routing Services. Deelesh Mandloi Dmitry Kudinov

Building Geoprocessing Tools with Python: Beyond the Basics. Dave Wynne

Python: Building Geoprocessing Tools

ArcGIS Runtime SDK for Java: A Beginner s Guide. Mark Baird JC Malott

TRANSITIONING TO A WEB- BASED DATA MANAGEMENT AND DATA SHARING MODEL. Chris Bardash, GISP

ArcGIS GeoEvent Server: Making 3D Scenes Come Alive with Real-Time Data

PYTHON: BUILDING GEOPROCESSING TOOLS. David Wynne, Geri Miller

Best Practices for Designing Effective Map Services

ArcGIS Pro: Mapping & Visualization. David Watkins, Edie Punt &

ArcGIS Enterprise Security. Gregory Ponto & Jeff Smith

Advanced Parcel Editing. Amy Andis Tim Hodson

Collector for ArcGIS Preparing for and Working in a disconnected environment

ArcGIS Runtime SDK for.net Building Apps. Antti Kajanus David Cardella

ArcGIS Web Viewers and Templates. Andy Gup, Jim Barry

PYTHON: BUILDING GEOPROCESSING TOOLS. David Wynne, Andrew Ortego

Web AppBuilder for ArcGIS: A Deep Dive in Enterprise Deployments. Nick Brueggemann and Mark Torrey

Hosted Feature Service to Custom Report with Data Driven Pages

What Makes a good content item GREAT?

ArcGIS Enterprise Security: Advanced. Gregory Ponto & Jeff Smith

Getting Started with ArcGIS for Server. Charmel Menzel and Ken Gorton

Imagery in a WebGIS. Wenxue Ju & Naila Khan

Building Applications with ArcGIS Runtime SDK for ios - Part I. Divesh Goyal Mark Dostal

ArcPad An Introduction

ArcGIS Desktop: Fundamentals of Cartography

ArcGIS Pro: Effective License Management. Stephanie Wendel Melanie Summers Rob Elkins

Desktop. ArcGIS Server. ArcGIS

Creating Web Mapping Applications. Nikki Golding

Indexed 3D Scene (I3S) Layers Specification

ArcGIS GeoEvent Server: Leveraging Stream Services. Ken Gorton RJ Sunderman

ArcGIS Enterprise: Portal Administration BILL MAJOR CRAIG CLEVELAND

An Introduction to GIS for developers

ArcGIS Enterprise Security: An Introduction. Randall Williams Esri PSIRT

ArcGIS for Server Michele Lundeen

Desktop Mapping: Creating Vector Tiles. Craig Williams &

Administering Your ArcGIS Enterprise Portal Bill Major Craig Cleveland

ArcGIS App Strategies Ben

Developing Web Applications with Geocoding and Routing Services Using ArcGIS Online. Deelesh Mandloi Dmitry Kudinov Brad Niemand

ArcGIS Online: Managing Data. Jeremy Bartley Sentha Sivabalan

Modernizing California State Highway Right of Way Records with GIS. Caltrans District 4 Oakland, CA

Building Mashups Using the ArcGIS APIs for FLEX and JavaScript. Shannon Brown Lee Bock

ArcGIS for Developers: An Introduction. Moey Min Ken

ArcGIS for Server: Security

Migrating to ArcGIS Pro. John Sharrard, Esri Solutions Engineer

Creating Apps Using ArcGIS Online Templates. Matt Kennedy

Architect your deployment using Chef

Transcription:

Working with Printing Service: Advanced Topics JEFF MOULDS TANU HOQUE

Session outline Subhead Here What is printing service and how it works? Use secured services with printing service ArcPy based printing solutions

Why do we need a Printing Service? Subhead Here Create a printable document (PDF, PNG etc.) Higher DPI Large format plot Map surrounds (title, scale bar, legends etc.)

What is Printing Service? Where can I find one? What? It is a Geoprocessing Service Where? ArcGIS Online Printing Service Out of the box Printing Service comes with ArcGIS Enterprise install Your own printing service using Export Web Map tool - with your own templates

Printing Service how does it work? ExportWebMap JSON Web Application Printing Service Output in PDF, PNG etc A Map/Feature/Image Service

ExportWebMap JSON Where can I find one? description of the map content of the map description of the output description of the layout

Security Print web map containing secured services

Can I Use Secured Services with Printing Service? Where can I find one? Secured Services are supported - Short term token (optionally with referrer) Web tier level security supported when server is federated to a portal - e.g. Windows Integrated Authentication

Printing Service how does it work with secured services? ExportWebMap JSON token Web Application Printing Service Output in PDF, PNG etc token token A Secured Service

Web Tier Web Tier mydomain/user1 Printing Service Web Tier Security ExportWebMap JSON Web Application Printing Service ArcGIS Server Account ArcGIS Server Account mydomain/user1 A Secured Service ArcGIS Server Account

Portal mydomain/user1 Printing Service Web Tier Security and Portal ExportWebMap JSON token Web Application Printing Service Output in PDF, PNG etc token mydomain/user1 A Secured Service Portal token

ArcPy based Printing Service Jeff Moulds

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

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 Web API / Web AppBuilder arcpy.mapping. ConvertWebMapToMapDocument High-quality vector output (e.g. PDF) Arcpy.mapping method for converting Web Maps to Map Documents: ConvertWebMapToMapDocument (webmap_json, {template_mxd}, {notes_gdb}, {extra_conversion_options}) 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 Reference the arcpy.mapping GP service in JavaScript API

Demo: Web app to export vector PDF using arcpy.mapping Python code used in custom GP service Get web map JSON Get output format (e.g. PDF) Get template MXD Get extra parameter (Georeferencing Info) Create new MXD based on web map Remove service layers Export to PDF or PNG 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

ArcPy how to add a photo with my parcel map? Author the layout template with a picture element - Insert a Picture Element - Do not save it as part of the document Update its source using arcpy function #get a reference to the first picture element on the layout pictelm = arcpy.mapping.listlayoutelements(m, "PICTURE_ELEMENT")[0] #updating the source image of the picture elment pictelm.sourceimage = r"e:\myphotos\parcel_photo.jpg"

ArcPy Access Feature Attributes from a ExportWebMap JSON? Python code import json js = json.loads(exportwebmap_as_json) olyrs = js["operationallayers"] ol = olyrs[2] fcol = ol["featurecollection"] lyrs = fcol["layers"] lyr = lyrs[0] fset = lyr["featureset"] fs = fset["features"] f = fs[0] attr = f["attributes"] print attr["state_name"] Structure of featurecollection in a ExportWebMap JSON

ArcPy based Printing Service to Print Popups Client App to pass in popup information (aka feature attributes) in featurecollection - e.g. you can use Select widget in a Web Application Builder app to select and highlight features - that gets passed featurecollection layer in the ExportWebMap_as_Json to a printing service ArcPy code reads those attributes - and update the value, of an existing Text Element on a layout template Blog post: http://esriurl.com/12303

ArcPy helps with debugging Extract ExportWebMap_as_JSON using web browser s developer tool Convert that to MXD using arcpy functions n ArcMap s Python window result = arcpy.mapping.convertwebmaptomapdocument(exportwebmap_json) print result.mapdocument.filepath Note: pass in a path of a FileGeodatabase as a value for {notes_gdb} parameter, if your webmap contains featurecollections (aka client sider graphic layers) Open the map document in ArcMap

Summary Subhead Here Printing service is a Geoprocessing service - ArcGIS Online s printing service - Printing service comes with ArcGIS Enterprise install - Your own printing service Printing service only support token based security - ArcGIS Server needs to be federated with a port for web tier level security ArcPy based printing solutions - Create and publish a printing service based on arcpy script - Output containing vector features - Adding parcel photos - Popup printing - Debug

Please Take Our Survey on the Esri Events App! Download the Esri Events app and find your event Select the session you attended Scroll down to find the survey Complete Answers and Select Submit