![]() A quick tour of publishing a geoprocessing service.A quick tour of authoring and sharing geoprocessing services.Property that will point to the REST URL of the geoprocessing serviceįor more information on geoprocessing services, see the following: The ArcGIS API for JavaScript has a Print Task that you can use in your web GIS application. You can then publish the script tool as an ArcGIS Server geoprocessing service. Once you have a Python script that prepares the map for printing, you can encapsulate it in a geoprocessing script tool. The PrintingTools service can be used in a web application to generate a high-cartographic-quality printable image.įor more information regarding the PrintingTools service, see the following: Items with custom settings using the LegendElement class and ListStyleItems function.ĪrcGIS Server also includes a geoprocessing service named Controlling the appearance of the legend-The arcpy.mapping module provides the ability to remove legend items or modify their style.For example, the ExportToPDF function has parameters for controlling raster and vector compression, defining colorspace, embedding fonts, and so on. Exporting using advanced options-All of the arcpy.mapping export functions have many advanced options.Moreover, the output map document can be exported as a PDF and inserted into other PDFs using the PDFDocument class to create a complete map book. Creating map books-A map series can be generated if Data Driven Pages is enabled on the template_mxd.This workflow would be used when swapping your own services with the corresponding vector data that you already have. After executing the ConvertWebMapToMapDocument function, loop through all the layers in the output map document, removing all layers except the vector layers that correspond to the service layers in the web map. One way to accomplish swapping service layers for vector data would be to stage template map documents that contain vector equivalents of all the possible service layers. For example, vector PDF output supports the following in PDF viewing applications: toggling layer visibility, viewing of feature attributes, and viewing of map coordinates. This is commonly desired when a vector output is wanted instead of service layers. Swapping out service layers for local vector data-In arcpy.mapping scripts, service layers can be identified and swapped out for layers that point to local data.Some example workflows that can be met using the ConvertWebMapToMapDocument function are as follows: The ConvertWebMapToMapDocument function is primarily intended for workflows where the web map needs to be modified or exported using arcpy.mapping functions. The map document can then be further modified before finally being printed or exported to a common format such as PDF.ĬonvertWebMapToMapDocument would most commonly be used when printing a map from a web GIS application using the ArcGIS API for JavaScript. Once the document is converted, the full state of the web map exists in the map document. ![]() The ConvertWebMapToMapDocument function will convert a web map that you intend to print or export to a map document. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |