GAIT (Defense Mapping)

Summary

The Geospatial Analysis Integrity Tool (GAIT) validates data against a data model. GAIT checks geometry, feature codes, attribute values and domains, and metadata. The tool writes its results as line and point shapefiles to an output directory. GAIT can execute against data in MGCP, GIFD, TDS, and VMap data models.

Usage

Syntax

GAIT_defense (in_features, in_gait_exe, in_folder, in_schema, in_project, in_format, in_metadata, in_silent, {in_reviewer_workspace})
ParameterExplanationData Type
in_features

The features to validate.

Feature Layer;Table View
in_gait_exe

The path to the GAIT executable file.

File
in_folder

The shapefile export directory.

Folder
in_schema

The data model that corresponds with the data displayed in input feature layer.

String
in_project

The name of the project. The project contains validation information, such as the checks run on the data and the results.

String
in_format

The set of checks to run on the data. This is specific to the data model listed in the attribution schema.

String
in_metadata

The metadata mapping table that corresponds to the data model of the input feature layer and the attribution schema.

String
in_silent

Indicates the amount of output messages to return from GAIT.exe.

  • SILENTLimit messaging from GAIT.exe. This is the default.
  • VERBOSERun GAIT.exe in verbose mode.
Boolean
in_reviewer_workspace
(Optional)

The workspace to which to write output features. Each shapefile result record is written to the reviewer table in this workspace.

Workspace

Code Sample

GAIT example 1 (stand-alone script)

This stand-alone Python script demonstrates running GAIT against MGCP data.

# ---------------------------------------------------------------------------
# GaitExample.py
# Created on: 2011-04-07 
# Description: Runs a GAIT session against a feature layer
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy

#check out the extension and import the defense toolbox
arcpy.CheckOutExtension('defense')
arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Defense Mapping Tools.tbx')

# Local variables for the GAIT tool params
AerofacA = "C:\\data\\mgcp.gdb\\MGCP\\AerofacA"
GAIT_exe = "C:\\GAIT\\GAIT.exe"
defense_data = "C:\\defense_data"
AerofacA_Layer = "AerofacA_Layer"

# Make a feature layer for the first param
arcpy.MakeFeatureLayer_management(AerofacA, AerofacA_Layer)

# Exec the GAIT tool
arcpy.GAIT_defense("AerofacA_Layer", GAIT_exe, defense_data, "MGCP", "MGCP_gait", "USE_MGCPMASTER", "META_MGCPNGA", "SILENT", "")

#Check in the extension
arcpy.CheckInExtension('defense')

Environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Requires Defense Mapping
ArcInfo: Requires Defense Mapping

12/20/2012