Résumé
Imports Aeronautical Information Exchange Model (AIXM) 5.1 schema data into an Aeronautical Information System (AIS) geodatabase.
Discussion
AIXM 5.1 data can be imported into an ArcGIS for Aviation : Création de diagrammes enterprise geodatabase with the AIS schema. This function decodes the rules and relationships defined in an AIXM 5.1 XML message and re-creates them in the AIS data model. AIXM messages are XML documents that conform to the AIXM XML schema.
This tool requires an enterprise geodatabase with the AIS schema. Use this geodatabase as the workspace. This is the name of the geodatabase where the tool will create data.
Syntaxe
ImportAixm51 (workspace_path, message_path, {log_path}, {table_list})
Paramètre | Explication | Type de données |
workspace_path | The path to the connection file for the geodatabase where the AIXM 5.1 data will be imported. This geodatabase must have the AIS data model. | String |
message_path | The path to the AIXM XML message to be imported into the AIS database. | String |
log_path | The directory that will store the log file. | String |
table_list [table_list,...] | The list of AIXM tables to import. | String |
Exemple de code
ImportAixm51 example
This sample imports data from an AIXM 5.1 message file into an enterprise geodatabase.
# Name: ImportAixm51_example.py
# Description: Imports AIXM 5.1 data into a geodatabase
# Author: Esri
# Date: September 2014
# Import arcpyproduction and aviation modules
import arcpy
import arcpyproduction
# Check out Aviation license
arcpy.CheckOutExtension("Aeronautical")
# Set variables
workspace = r'c:\data\10.3\Aviation\AIXM_Import.sde'
message = r'c:\data\10.3\Aviation\BD_2010-04-08.xml'
log = r'c:\data\10.3\Aviation\log.txt'
# Execute ImportAixm51
arcpyproduction.aviation.ImportAixm51(workspace, message, log)
# Check in Aviation license
arcpy.CheckInExtension("Aeronautical")