TIN Compare (Data Management)

License Level:BasicStandardAdvanced

Summary

Compares two TINs and returns the comparison results. TIN Compare can report differences with geometry, TIN node and triangle tags, and spatial reference.

Usage

Syntax

TINCompare_management (in_base_tin, in_test_tin, {compare_type}, {continue_compare}, {out_compare_file})
ParameterExplanationData Type
in_base_tin

The Input Base Tin is compared with the Input Test Tin. Input Base Tin refers to data that you have declared valid. This base data has the correct geometry, tag values (if any), and spatial reference.

TIN Layer
in_test_tin

The Input Test Tin is compared against the Input Base Tin.

TIN Layer
compare_type
(Optional)

The comparison type.

  • ALLThis is the default.
  • PROPERTIES_ONLYRefers to both geometry and TIN tag values, if any, that are assigned to nodes and triangles.
  • SPATIAL_REFERENCE_ONLYCoordinate system information.
String
continue_compare
(Optional)

Indicates whether to compare all properties after encountering the first mismatch.

  • NO_CONTINUE_COMPAREStop after encountering the first mismatch. This is the default.
  • CONTINUE_COMPARECompare other properties after encountering the first mismatch.
Boolean
out_compare_file
(Optional)

The name and path of the text file which will contain the comparison results.

File

Code Sample

TinCompare Example (Python Window)

The following Python window script demonstrates how to use the TinCompare function in immediate mode.

import arcpy
arcpy.TinCompare_management(r'c:\Workspace\basetin', r'c:\Workspace\newtin', 'ALL', 'CONTINUE_COMPARE', r'c:\Workspace\tincompare.txt')
TinCompare tool Example (Stand-alone script)

Example of how to use the TinCompare tool in a stand-alone script.

# Name: TinCompare.py
# Description: Compare two TINs and return comparison result.

# import system modules 
import arcpy

try:
    # Set local variables
    base_tin= "C:/Workspace/basetin"
    test_tin= "C:/Workspace/newtin"
    compare_type = "ALL"
    continue_compare = "CONTINUE_COMPARE"
    compare_file = "C:/Workspace/tincompare.txt"
 
    # Process: TinCompare
    compare_result = arcpy.TinCompare_management(base_tin, test_tin, compare_type, continue_compare, compare_file)
    print compare_result
    print arcpy.GetMessages()
 
except:
    # Print error message if an error occurs
    print arcpy.GetMessages()

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013