com.esri.arcgis.geodatabase
Class TinImporter

java.lang.Object
  extended by com.esri.arcgis.geodatabase.TinImporter
All Implemented Interfaces:
ITinImporter, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class TinImporter
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ITinImporter

The ESRI TinImporter component.

Description

The TINImporter class is used to import TINs from LandXML files.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
TinImporter()
          Constructs a TinImporter using ArcGIS Engine.
TinImporter(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TinImporter theTinImporter = (TinImporter) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 void getTinNamesFromLandXML(String xmlName, ITrackCancel pTrackCancel, IStringArray[] ppOutTinNames)
          Gets the names of the TINs from LandXML file.
 int hashCode()
          the hashcode for this object
 void importFromLandXML(String xmlName, String tinName, ILongArray pIndices, ITrackCancel pTrackCancel, IStringArray[] ppOutTinNames)
          Imports TIN from LandXML file.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

TinImporter

public TinImporter()
            throws IOException,
                   UnknownHostException
Constructs a TinImporter using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

TinImporter

public TinImporter(Object obj)
            throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TinImporter theTinImporter = (TinImporter) obj;

Construct a TinImporter using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to TinImporter.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

importFromLandXML

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

Specified by:
importFromLandXML in interface ITinImporter
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

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

Specified by:
getTinNamesFromLandXML in interface ITinImporter
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.