Chart Automation (Nautical)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

Runs selected chart finishing processes on a chart product. 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.

Utilisation

Syntaxe

ChartAutomation_nautical (Product_Type, Chart_finishing_processes_to_run, {Run_on_all_chart_panels}, {Product_AOI}, {Scale}, {Product_Database})
ParamètreExplicationType de données
Product_Type

The type of chart product:

  • Product LibraryA product currently checked out from the product library geodatabase and opened in the current map document. The names of the data frames must match the names of the chart panels in the product.
  • Independent ProductA product created by importing data into a geodatabase with the Chart schema. The product does not need to be associated with the product library.
String
Chart_finishing_processes_to_run

The finishing processes that can be run on the chart panel or panels.

  • Add Layers to TOCAdds a rendered and ordered group layer with all Nautical layers to the data frame associated with the chart panel. It updates the data sources in each layer to the workspace path of the production database of the chart panel.
  • Create Grids and GraticulesCreates a grids and graticules layer using the appropriate Nautical grids XML for the INT2 standard based on the map scale (or compilation scale) defined in the product AOI feature class. Adds the output grid layer to the map document. The data frame’s coordinate system, rotation, scale, size, and shape are updated based on the properties of the grids.
  • Generate Cartographic LimitsRuns the Generate Cartographic Limits tool on all applicable layers\subtypes and appends the results to the A_L feature classes located under the CartographicFeatures feature dataset in the production database. Adds the output feature classes as layers to the Table of Contents window if they are not already loaded in the map document.
  • Convert Labels to AnnotationConverts labels in all layers to feature-linked annotation and adds the resulting annotation layer to the map document. The process runs on all layers in the data frame associated with the chart panel.
  • Mask AnnotationCreates one-point mask polygons on all features in the DepthsLAnno layer or where they commonly intersect polyline features in the map. Sets masked and masking layers in the Advanced Drawing Options dialog box.
String
Run_on_all_chart_panels
(Facultatif)

Option to run the selected chart finishing processes on all chart panels associated with the data frames in the map document or just the chart panel associated with the active data frame.

  • ALL_CHART_PANELSThe selected chart finishing processes will run on all chart panels in the product. This is the default.
  • ACTIVE_PANELThe selected chart finishing processes will only run on the chart panel associated with the active data frame in the map document.
Boolean
Product_AOI
(Facultatif)

The polygon layer that contains the area of interest for the product extent. Exactly one feature must be selected in this layer. This is the feature that will be used as the Product AOI.

Feature Layer
Scale
(Facultatif)

The scale of the chart product.

Double
Product_Database
(Facultatif)

The geodatabase that contains the chart data in the Nautical Chart schema.

Workspace

Exemple de code

ChartAutomation example 1

The following code sample demonstrates how to use the Chart Automation tool with a product created in the product library.

# NOTE: You must have a PL set and run this tool within ArcGIS

# tool variables
product_type = "Product Library"
finishing_processes="Add Layers to TOC;Mask Annotation"
chart_panels="ALL_CHART_PANELS"

# exec the tool
arcpy.ChartAutomation_nautical(product_type, finishing_processes, chart_panels)
ChartAutomation example 2

The following code sample demonstrates how to use the Chart Automation tool with a product independent of the product library database.

# NOTE: You must run this tool within ArcGIS
# NOTE: You must run this tool within ArcGIS 
# tool variables
product_type = "Independent Product"
finishing_processes="Add Layers to TOC;Mask Annotation"
product_aoi = "AOI"
scale = 22000
product_db = r"C:\Data\MyChartProduct.gdb"

# exec the tool
arcpy.ChartAutomation_nautical(product_type, finishing_processes, Product_AOI=product_aoi, Scale=scale, Product_Database=product_db)

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Annuler
ArcGIS for Desktop Standard: Annuler
ArcGIS for Desktop Advanced: Requis Maritime Charting
4/26/2014