サマリー
Analyzes all the areas of interest maintained in the aviation production database and creates, modifies, and deletes cartographic copies of features.
説明
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 orphaned features from an area of interest that is not associated with a master feature or that do not satisfy an extraction query. It can also create new cartographic features when new master features have been added to the aviation production database.
構文
CartoCommander (aoi_info, production_database, feature_class_list)
パラメーター | 説明 | データ タイプ |
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 |
コードのサンプル
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")