Resumen
Imports Aerodrome Mapping Exchange Model (AMXM) 2.0 schema data into an Airports geodatabase.
Debate
AMXM data can be imported into an ArcGIS Aviation Airports geodatabase with the Airports schema. ImportAmxm decodes the features and relationships defined in an AMXM 2.0 XML message and loads them into the Airports data model. AMXM messages are XML documents that conform to the AMXM XML schema.
Sintaxis
ImportAmxm (workspace_path, message_path, {log_path}, {table_list})
Parámetro | Explicación | Tipo de datos |
workspace_path | The path to the connection file for the geodatabase to which the AMXM 2.0 data will be imported. The geodatabase must include the Airports data model. | String |
message_path | The path to the AMXM 2.0 XML message that has the feature and relationships that will be imported into the Airports data model. | String |
log_path | The directory that will store the log file that reports any errors that have occurred during import. | String |
table_list [table_list,...] | The list of AMXM tables in the AIS datamodel that feature will be imported into. By default, all supported feature are imported. | String |
Muestra de código
ImportAmxm example
This sample imports data from an AMXM 2.0 message file and imports it into a geodatabase.
# Name: ImportAmxm_example.py
# Description: Imports AMXM 2.0 data into a geodatabase
# Author: Esri
# Date: December 2016
# Import arcpyproduction and aviation modules
import arcpy
import arcpyproduction
# Check out Aviation license
arcpy.CheckOutExtension("Aeronautical")
# Set variables
workspace = r'c:\data\10.5\Aviation\AMXM_Import.sde'
message = r'c:\data\10.5\Aviation\BD_2010-04-08.xml'
log = r'c:\data\10.5\Aviation\log.txt'
# Execute ImportAixm45
arcpyproduction.aviation.ImportAmxm(workspace, message, log)
# Check in Aviation license
arcpy.CheckInExtension("Aeronautical")