Resumen
Analyzes all the areas of interest maintained in the aviation production database and creates, modifies, and deletes cartographic copies of features.
Debate
The CartoCommander function is useful for ensuring that cartographic copies of features for aeronautical charts are up-to-date. For example, this tool can remove detached features from an area of interest that is not associated with a primary feature or that do not satisfy an extraction query. It can also create new cartographic features when new primary features have been added to the aviation production database.
Sintaxis
CartoCommander (aoi_info, production_database, feature_class_list)
Parámetro | Explicación | Tipo de datos |
aoi_info [aoi_info,...] | A list of AviationChartInfo objects. The objects contain the information for map ID for the areas of interest to be processed. The map ID can be retrieved using the GetAviationAOI function and will be formatted as Solution Name::Product Class Name::Series Name::Product Name::Instance Name::AOI Name. | String |
production_database | Path to the workspace containing the data used for production tasks or is referenced by maps and charts. | String |
feature_class_list [feature_class_list,...] | The list of cartographic feature classes where features can be created or edited. | String |
Muestra de código
CartoCommander example
This script updates the cartographic features in two areas of interest.
# Name: CartoCommanderExample.py
# Description: Updates cartographic features for two AOIs
# Author: Esri
# Date: August 2014
# Import arcpyproduction and aviation modules
import arcpy
import arcpyproduction
# Check out Aviation license
arcpy.CheckOutExtension("Aeronautical")
# Set variables
prodLib = "c:/data/FAA_PL.sde"
prodData = "c:/data/FAA_PD.sde"
aois = ["Aeronautical::IFR_Enroute::AK High::AK H-2::AK H-2::AK H-2 AOI","Aeronautical::IFR_Enroute::US High Even::H-12::H-12::H-12 AOI"]
cartoFeatures = ["ADHP_C"]
# Get map IDs
mapIDs = arcpyproduction.aviation.charting.GetAviationAOI(prodLib,aois)
# Update cartographic features for AOIs
arcpyproduction.aviation.charting.CartoCommander(mapIDs.values(),prodData,cartoFeatures)
# Check in Aviation license
arcpy.CheckInExtension("Aeronautical")