ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

ExportAmxm

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

Exports data from an Airports geodatabase to an Aerodrome Mapping Exchange Model (AMXM) 2.0 schema data message.

Note:

This ArcPyProduction function exports data from the Airports 18C schema.

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.

Syntax

ExportAmxm (workspace_path, message_path, export_properties, {log_path})
ParameterExplanationData Type
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

Code sample

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")

Related topics

  • Introduction to arcpyproduction.aviation
  • Mapping information for AMXM and Airports datamodel

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2022 Esri. | Privacy | Legal