Import AIXM to AIS (Aeronautical)
Zusammenfassung
Imports Aeronautical Information Exchange Model (AIXM) data into an Aeronautical Information System (AIS) geodatabase. The tool decodes the rules and relationships defined in an AIXM 4.5 XML message and re-creates them in the AIS data model. AIXM messages are XML documents that conform to the AIXM XML schema.
Verwendung
-
This tool requires the Data Interoperability extension. Activate the Data Interoperability extension through the ArcGIS Customize > Extensions dialog box.
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 mapping between the data models. You can use .csv files provided with the ESRI Aeronautical Solution. These files are installed in the ESRIAeronautical\Desktop10.0\DataConversion\AIXM\SchemaMapper folder.
You can use the Subtype Schema Mapper parameter to map AICM features to subtypes in geodatabase feature classes. Subtype Schema Mapper is a path to a .csv file that lists the feature to subtype mapping. You can use example .csv files installed in ESRIAeronautical\Desktop10.0\DataConversion\AIXM\SchemaMapper.
This tool requires an ArcSDE geodatabase with the AIS schema. Use this geodatabase name in the Destination Enterprise Geodatabase parameter. This is the name of the geodatabase where the tool will create data.
All feature classes in the Destination Enterprise Geodatabase must be registered as versioned. The tool starts an edit session and writes into the geodatabase.
This tool always runs in foreground mode. If you run this tool with Background Processing checked, the tool will automatically switch to foreground processing.
Syntax
Parameter | Erläuterung | Datentyp |
SrcDataset_AIXM |
The AIXM-XML data. | File |
AttributeSchemaMapper |
The path to the .csv file that contains the AIXM element to AIS attribute schema mapping rules. You can use the AIXMtoESRI_Attribute.csv located in the ESRI Aeronautical Solution installation directory. | File |
SubtypeSchemaMapper |
The path to the .csv that contains the AICM feature to AIS subtype schema mapping rules. You can use the AIXMtoESRI_Subtype.csv file located in the ESRI Aeronautical Solution installation directory. | File |
_SDEDestDataset |
This is the name of the destination geodatabase that contains the AIS schema. | String |
_SDEServer |
The enterprise geodatabase server name. | String |
_SDEInstance |
The port or instance number for the geodatabase. | String |
_SDEUserName | A valid database username. This user must have SELECT, INSERT, UPDATE, and DELETE permission in the _SDEDestDataset. | String |
_SDEPassword |
A valid database password. | String |
_SDEVersion |
The geodatabase version name. | String |
Codebeispiel
The following Python window script demonstrates how to use the ImportAIXtoAIS function.
# Load Toolbox - you may have to alter this path arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Aeronautical Tools.tbx') # UNC path to an aixm xml AIXM_Update_Obstacles_xml = "\\\\server_name\\GNAV_Aero\\ASP\\ASP_Released10\\ASP\\Documents\\AIXM_Update_Obstacles.xml" # local path to the attribute map csv AIXMtoESRI_Attribute_csv = "C:\\Program Files\\ESRIAeronautical\\Desktop10.0\\DataConversion\\AIXM\\SchemaMapper\\AIXMtoESRI_Attribute.csv" # local path to the subtype csv AIXMtoESRI_Subtype_csv = "C:\\Program Files\\ESRIAeronautical\\Desktop10.0\\DataConversion\\AIXM\\SchemaMapper\\AIXMtoESRI_Subtype.csv" # Invoke Import AIXM to AIS arcpy.ImportAIXMtoAIS__Aeronautical(AIXM_Update_Obstacles_xml, AIXMtoESRI_Attribute_csv, AIXMtoESRI_Subtype_csv "ASP_PL", "127.0.0.1", "sde:sqlserver:127.0.0.1\\sqlexpress", "username", "password", "DBO.DataUpdates")