Import AIXM 5.1 to AIS (Aviation Data Management)
摘要
Imports Aeronautical Information Exchange Model (AIXM) data into an Aeronautical Information System (AIS) geodatabase. This tool 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.
用法
You can customize this tool. Right-click the tool in the ArcToolbox window and click Edit. The tool will open in the Data Interoperability Workbench.
This tool uses the Attribute Schema Mapper parameter to map AIXM elements to AIS attributes. Attribute Schema Mapper is a path to a .csv file that lists attribute mappings between the data models. You can use the AIXM51toESRI_Attribute.csv file provided with ArcGIS for Aviation:Charting. This file is installed in the <Aviation installation dir>\DataExchange\AIXM\SchemaMapper folder.
This tool requires an ArcSDE geodatabase with the AIS schema. Specify an enterprise geodatabase connection file in the Geodatabase Connection File parameter.
All feature classes in the Geodatabase Connection File must be registered as versioned. This tool starts an edit session and writes into the geodatabase.
This tool is memory intensive. Contact Esri If you experience difficulties importing large files (200 MB or more) using the ArcGIS Data Interoperability extension.
语法
参数 | 说明 | 数据类型 |
source_aixm5 |
The AIXM-XML data. | File |
geodatabase_sde |
Connection file to the geodatabase that is going to store the AIXM data in the AIS data model. | File |
attribute_schema_mapper |
The .csv file that contains the AIXM element to AIS attribute schema mapping rules. You can use AIXM51toESRI_Attribute.csv located in the 航空制表 installation directory. | File |
destcoordsys (可选) |
Specifies a coordinate system for the data in the destination AIS geodatabase. The tool will reproject the data if necessary. | Spatial Reference |
aixm5_in_srs_axis_order_aixm5 (可选) | Specifies the axis order of coordinates in the Source AIXM5 File. Axis order indicates the order of coordinate latitude, longitude, and elevation values.
| String |
代码实例
The following Python window script demonstrates how to use the ImportAIXM51ToAIS function.
# source AIXM xml data
srcAIXM = "\\\\server_name/GNAV_Aero/AIXM_Update_Obstacles.xml"
# attribute schema map
attributeSchemaMap = "C:/Program Files/ArcGIS/ESRIAeronautical/Desktop10.1/DataExchange/AIXM/SchemaMapper/AIXMtoESRI_Attribute.csv"
# AIS workspace
aisWorkspace="c:/data/ais.sde"
# coordinate axis order
axisOrder="1,2"
# execute the import tool
arcpy.ImportAIXM51toAIS_aviationmanagement(srcAIXM, attributeSchemaMap, aisWorkspace,"", axisOrder)