Prepare Aviation Data (Aviation Tools)
Summary
Migrates attributes from main aviation data to their cartographic features based on specific JSON scripts. These attributes are used for labeling and symbolizing cartographic features. Attributes defined in the JSON will be copied from their locations in the main feature classes and formatted into output attributes also defined in the JSON.
Usage
Attributes will be migrated to the cartographic features in the format
|| <> <value> <> ||in which features are delimited by||and the attribute values of those features are delimited by<>.For example, to migrate the
TYPE_CODE,IDENT_TXT, andMAGNETICVARIATION_VALfeatures from the main ADHP feature class, the output in the ADHP_C cartographic feature class will be<> TYPE_CODE <> IDENT_TXT <> MAGNETICVARIATION_VAL <>.Note:
The
||symbols may not be included in the migrated information if a single feature is being migrated from the main features to the cartographic features.Tip:
The ArcGIS Aviation Charting product data files contain Arcade scripts for parsing this delimited data. These scripts are located at
<installation location>\ArcGIS Aviation Charting\Product Files\<version>\SampleConfigs\ICAO\Enroute\ArcadeExpressions.The optional Input Datasets parameter is populated by a list of tables and feature classes from the provided JSON. You can select specific tables and features classes for evaluation. If none are selected, they will all be evaluated.
Caution:
There are existing limitations with using a file geodatabase that will affect the performance of this tool.
This tool will run on all the charts in a project unless individual charts or chart series are specified with the Area of Interest Features parameter. Select the charts to process in the area of interest (AOI) layer and use them as the Area of Interest Features parameter value making sure to turn on the Use the selected records toggle button below the parameter.
The Configuration File (.json) parameter lists all of the rules used to extract information from the main aviation data and migrates the information to the cartographic features so that it can be used for symbology and labeling expressions. For each cartographic feature class, a list of rules can be added, with each consisting of the following elements:
calcfield—The required field on the cartographic feature where the output will be written. This is required.fields—A list of the main feature fields from which information will be extracted. Fields from multiple related tables can be used. This is required.tables—A list of the tables or feature classes from which attribute information will be extracted. All of the tables referenced by a field in thefieldslist should be included. This is required.where—An SQL expression that defines the relationships between the tables and, optionally, filters the results. This is required.distinct—Specifies whether duplicate values will be removed from the results and only distinct values will be written to thecalcfieldfield (true). This is optional.requires—A property that sets dependencies for thecalcfieldelements to determine the order in which they are written. This is optional.
There is no set order for the
calcfieldelements when they are processed from the.jsonconfiguration file. There may be times when acalcfieldvalue has a dependency on the output of anothercalcfieldvalue such as the following:When a
calcfieldvalue depends on the output of anothercalcfieldvalue, you must add arequireskey value pair to thecalcfieldvalue in the JSON.The value is a string with a key value pair of the table and the
calcfieldvalue must be processed before the currentcalcfieldvalue. For example,"requires":"airspace_c.service_info".Alternatively, you can also provide a list if the output of multiple other
calcfieldelements are required, for example,"requires":["airspace_c.service_info", "navaidsystem_c.fss_info"].When listing a required
calcfieldvalue that also has its own dependency, it is not necessary to also list its required field. However, it must have its ownrequireskey value pair in the JSON.
This tool will adjust the processing order to ensure that any required dependencies are run first.
The following sample configuration file can be used to populate the Configuration File (.json) parameter:
{ "adhp_c":[{ "calcfield":"adhp_info", "fields": [ "adhp.TYPE_CODE", "adhp.IDENT_TXT", "adhp.MAGNETICVARIATION_VAL" ], "tables": [ "adhp" ], "where": "Master_ID = adhp.gfid" }, { "calcfield":"airspace_info", "fields": [ "airspace.class_code", "airspace.workhr_code" ], "tables": [ "adhp", "airspace" ], "where": "Master_ID = adhp.gfid and adhp.gfid = airspace.adhp_id and airspace.class_code IN ('C', 'D')" }], "navaidsystem": [ { "calcfield":"availability_info", "fields": [ "availability.operationstatus_code" ], "tables": [ "navaidsystem", "availability" ], "where": "navaidsystem.gfid = availability.predicated_id" }, { "calcfield":"navaidcomponent_info", "fields": [ "navaidcomponent.subtype_code", "navaidcomponent.slavedvariation_val", "navaidcomponent.channel_txt", "navaidcomponent.frequency_val", "navaidcomponent.status_code", "navaidcomponent.workhr_code", "navaidcomponent.voice_code" ], "tables": [ "navaidsystem", "navaidassociation", "navaidcomponent" ], "where": "navaidsystem.gfid = navaidassociation.navaidsystem_id and navaidassociation.navaidcomponent_id = navaidcomponent.gfid", "distinct" : true, "requires": ["adhp_c.adhp_info", "adhp_c.availability_info"] } ]The migration data will be stored in the target feature class in the
calcfieldvalue. This is populated with the values, such as attributes, from thefieldsvalue, which target the source feature class.Note:
The
distinctproperty allows duplicate values to be removed from the results.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Target Geodatabase |
The ArcGIS Aviation Charting schema workspace on which the evaluation will be run. |
Workspace |
|
Configuration File (.json) |
The |
File |
|
Input Datasets (Optional) |
The names of the tables and feature classes that will be evaluated. |
String |
|
Area of Interest Features (Optional) |
An area of interest polygon layer that will be used to spatially filter source features. |
Feature Layer |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Workspace |
The output aviation workspace containing the evaluation results. |
Workspace |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Requires ArcGIS Aviation Charting
- Advanced: Requires ArcGIS Aviation Charting