Provides methods to import TIN from external formats (LandXML for example).
Members
Name | Description | |
---|---|---|
GetTinNamesFromLandXML | Gets the names of the TINs from LandXML file. | |
ImportFromLandXML | Imports TIN from LandXML file. |
ITinImporter.GetTinNamesFromLandXML Method
Gets the names of the TINs from LandXML file.
Public Sub GetTinNamesFromLandXML ( _
ByVal xmlName As String, _
ByVal pTrackCancel As ITrackCancel, _
ByRef ppOutTinNames As IStringArray _
)
public void GetTinNamesFromLandXML (
string xmlName,
ITrackCancel pTrackCancel,
ref IStringArray ppOutTinNames
);
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.
ITinImporter.ImportFromLandXML Method
Imports TIN from LandXML file.
Public Sub ImportFromLandXML ( _
ByVal xmlName As String, _
ByVal TinName As String, _
ByVal pIndices As ILongArray, _
ByVal pTrackCancel As ITrackCancel, _
ByRef ppOutTinNames As IStringArray _
)
public void ImportFromLandXML (
string xmlName,
string TinName,
ILongArray pIndices,
ITrackCancel pTrackCancel,
ref IStringArray ppOutTinNames
);
Description
Creates ArcGIS TINs by importing them from LandXML files. The output TINs will be readable by ArcGIS 10.0 and later. They cannot be read by earlier versions because they will be constrained triangulations which are not supported by versions earlier than 10.0.
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.
Classes that implement ITinImporter
Classes | Description |
---|---|
TinImporter | The Esri TinImporter component. |