Summary
Runs selected chart-finishing processes on a nautical chart product created with Product Library. Processes include adding layers to the TOC, generating cartographic limits, creating grids and graticules, converting labels to annotation, and masking annotation.
A description of each process can be found in Chart automation finishing processes.
Usage
The selected chart-finishing processes are run on a chart product that was created using the Product Library window. To use chart automation on a product created without Product Library, see the Chart Automation tool.
The group layer added by the Add Layers to TOC process is named Nautical.lyr and is installed with ArcGIS for Maritime: Charting in the following location:
- For 64-bit Windows operating systems—<Installation location>\Program Files(x86)\ArcGIS\MaritimeCharting\Desktop10.3\Charting\Cartography\Symbology
- For 32-bit Windows operating systems—<Installation location>\Program Files\ArcGIS\MaritimeCharting \Desktop10.3\Charting\Cartography\Symbology
During the Make Grids and Graticules Layer process, if the value for the MAPSCALE attribute in the Product Library's Chart AOI feature class is NULL, the scale defined in the COMPILATIONSCALE attribute is used instead.
The output grids are stored in the GRD_Grids feature dataset in the production database and the grid layers are added to the map document under a group layer named Grids.
The selected features using the Generate Cartographic Limits tool are converted to polylines and erased where their boundary is coincident with a CoastlineL feature.
Using the Convert Labels To Annotation tool process, if the labels are turned on in the layer’s properties, feature-linked annotation is generated for that layer at the reference scale of the data frame, and the labels for that layer are then turned off.
The output annotation feature classes are stored in the production database and the annotation layers are added to the map document under a group layer named Anno.
Syntax
ProductLibraryChartAutomation(Chart_Finishing_Processes, Chart_Panels)
Parameter | Explanation | Data Type |
Chart_Finishing_Processes [Chart_Finishing_Processes,...] | The finishing processes that can be run.
| String |
Chart_Panels | The data frame names in the current map document. The selected chart-finishing processes will run on all of the data frames selected. | String |
Code sample
ProductLibraryChartAutomation example
The following code sample demonstrates how to use the tool with a product created in the product library.
# NOTE: You must have a product library set and run this tool within ArcGIS
# Variables
finishing_processes="Add Layers to TOC;Convert Labels to Annotation"
chart_panels="MainPanel;InsetPanel"
# Execute the tool
arcpy.ProductLibraryChartAutomation_nautical(finishing_processes, chart_panels)
Environments
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: No
- ArcGIS Desktop Advanced: Requires Maritime Charting