Résumé
Exports data from an Airports geodatabase to an Aerodrome Mapping Exchange Model (AMXM) 2.0 schema data message.
Discussion
AMXM data can be exported from an ArcGIS Aviation Airports enterprise geodatabase with the Airports (18C) schema. This feature retrieves the data and relationships from an Airports schema geodatabase and generates an AMXM XML message representing that data. AMXM messages are XML documents that conform to the AMXM 2.0 XML schema and DO-272D standard.
This tool requires an enterprise geodatabase with the Airports schema. Use this geodatabase as the workspace. This is the name of the geodatabase from which the tool will export data.
Syntaxe
ExportAmxm (workspace_path, message_path, export_properties, {log_path})
Paramètre | Explication | Type de données |
workspace_path | The path to the connection file for the geodatabase from which the AMXM data is going to be exported. This geodatabase must have the AIS data model. | String |
message_path | The path of the AMXM XML message that will be created. | String |
export_properties | The AmxmExportInfo object containing the tables to be exported along with SQL queries for those tables and the type of message to export. | Object |
log_path | The directory that will store the full path for the log file. | String |
Exemple de code
ExportAmxm example
This sample exports data from an enterprise geodatabase to an AMXM message file.
# Name: ExportAmxm_example.py
# Description: Exports data from an Airports database to an AMXM message
# Author: Esri
# Date: November 2016
# Import arcpyproduction and aviation modules
import arcpy
import arcpyproduction
# Check out Aviation license
arcpy.CheckOutExtension("Aeronautical")
# Create AmxmExportInfo object
export_settings = arcpyproduction.aviation.AmxmExportInfo()
# Set and access export_settings
export_settings.queries["TAXIWAYELEMENT"] = "OPERATIONALSTATUSCODE = 'ACTIVE'"
export_settings.queries["RUNWAYELEMENT"] = "IDARPT = 'KHPN'"
export_settings.queries["STRUCTUREPOLYGON"] = "" # empty query will export everything
gdb = "/Examples/Airports.gdb"
message = "/Examples/AMXM_export.xml"
# export data
arcpyproduction.aviation.ExportAmxm(gdb, message, export_settings)
# Check in Aviation license
arcpy.CheckInExtension("Aeronautical")