com.esri.arcgis.geodatabase
Interface ITinImporter

All Superinterfaces:
Serializable
All Known Implementing Classes:
TinImporter

public interface ITinImporter
extends Serializable

Provides methods to import TIN from external formats (LandXML for example).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void getTinNamesFromLandXML(String xmlName, ITrackCancel pTrackCancel, IStringArray[] ppOutTinNames)
          Gets the names of the TINs from LandXML file.
 void importFromLandXML(String xmlName, String tinName, ILongArray pIndices, ITrackCancel pTrackCancel, IStringArray[] ppOutTinNames)
          Imports TIN from LandXML file.
 

Method Detail

importFromLandXML

void importFromLandXML(String xmlName,
                       String tinName,
                       ILongArray pIndices,
                       ITrackCancel pTrackCancel,
                       IStringArray[] ppOutTinNames)
                       throws IOException,
                              AutomationException
Imports TIN from LandXML file.

Description

Creates ArcGIS TINs by importing them from LandXML files. The output TINs will be readable by ArcGIS 9.4 and later. They can not be read by earlier versions because they will be constrained triangulations which are not supported by versions earlier than 9.4.

xmlName is a string containing the full path to the LandXML file.

TinName is the base name for the output. The base name includes a full path to the target folder plus a name for the TIN(s). The base name must be unique and is used to name the first TIN. If it already exists an error is returned. If multiple TINs are being extracted then the subsequent TINs are named using the base plus an appended number.

pIndices is a LongArray which indicates which TINs from the input LandXML file to extract. Indices start at base 1. See GetTinNamesFromLandXML to determine what TINs are in a LandXML file. A NULL can be passed in which case all TINs will be imported.

pTrackCancel references a CancelTracker and can be used to cancel the process. To bypass this feature pass a NULL pointer.

pOutTinNames contains the short name of the output TIN(s). This is needed to discover what names were used when more than one TIN is output since unique names are synthesized by the importer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
xmlName - The xmlName (in)
tinName - The tinName (in)
pIndices - A reference to a com.esri.arcgis.system.ILongArray (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
ppOutTinNames - A reference to a com.esri.arcgis.system.IStringArray (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTinNamesFromLandXML

void getTinNamesFromLandXML(String xmlName,
                            ITrackCancel pTrackCancel,
                            IStringArray[] ppOutTinNames)
                            throws IOException,
                                   AutomationException
Gets the names of the TINs from LandXML file.

Description

Returns the names of the TINs contained in the specified LandXML file.

xmlName is a string containing the full path to the LandXML file.

pTrackCancel references a CancelTracker object and can be used to cancel the process. To bypass this feature pass a NULL pointer.

ppOutTinNames is a StrArray into which the TIN names will be placed. It need not already be instantiated, the mthod will create it. The number of elements in the output array will be equal to the number of TINs in the LandXML file. If a TIN is in the file unnamed, it will be included as an empty string into the output array.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
xmlName - The xmlName (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
ppOutTinNames - A reference to a com.esri.arcgis.system.IStringArray (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.