Skip To Content

Prepare Aviation Data (Aviation)

Mit der Aviation Charting-Lizenz verfügbar.

Zusammenfassung

Evaluates information from related tables to populate a source feature.

Verwendung

  • 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.

Syntax

PrepareAviationData(target_gdb, config_file, {in_dataset_names})
ParameterErklärungDatentyp
target_gdb

The ArcGIS for Aviation: Charting schema workspace on which the evaluation will be run.

Workspace
config_file

The JSON file containing the evaluation criteria.

File
in_dataset_names
[in_dataset_names,...]
(optional)

The names of the tables and feature classes to be evaluated.

String

Abgeleitete Ausgabe

NameErklärungDatentyp
out_workspace

The output aviation workspace containing the evaluation results.

Workspace

Codebeispiel

PrepareAviationData example (stand-alone script)

The following Python window script demonstrates how to use the PrepareAviationData tool.

import arcpy

# set gp environment
arcpy.CheckOutExtension("Aeronautical")

# Input database where data 
target_gdb = r"C:\data\MyData.gdb"

# config file for data calculation
config_file = r"C:\data\config.json"

# subset of tables or feature classes that will be calculated
in_datasets = "adhp;navaidsystem"

# Running tool
arcpy.PrepareAviationData_aviation(target_gdb, config_file, in_datasets)

arcpy.CheckInExtension("Aeronautical")
Sample config file for the Input Datasets parameter

The following sample config file can be used to populate the in_datasets_names 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_lbl",
            "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_lbl",
            "fields": [
                "availability.operationstatus_code"
            ],
            "tables": [
                "navaidsystem",
                "availability"
            ],
            "where": "navaidsystem.gfid = availability.predicated_id"
        },
        {
            "calcfield":"navaidcomponent_lbl",
            "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"
        }
    ]
}

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Lizenzinformationen

  • Basic: Nein
  • Standard: Erfordert ArcGIS for Aviation: Charting
  • Advanced: Erfordert ArcGIS for Aviation: Charting

Verwandte Themen