Provides access to TIN's internal edit errors.
Description
This interface is used to catch and report problems that may occur when inserting geometry into a triangulation.
Members
Name | Description | |
---|---|---|
ClearEditErrorLog | Clears existing error log contents. | |
CurrentObjectClassName | Name representing a group of shapes to be added/edited. | |
CurrentObjectID | ID of the shape to be added/edited. | |
EditErrorCount | The number of errors. | |
SaveEditErrorLog | Saves error log contents to a file. |
ITinEditErrorLog.ClearEditErrorLog Method
Clears existing error log contents.
Public Sub ClearEditErrorLog ( _
)
public void ClearEditErrorLog (
);
ITinEditErrorLog.CurrentObjectClassName Property
Name representing a group of shapes to be added/edited.
Public Property CurrentObjectClassName As String
public string CurrentObjectClassName {get; set;}
Description
The ObjectClass of geometry associated with a triangulation error. You can set this value to be anything meaningful to you like the name of the source featureclass of the geometry.
If you're adding shapes with ITinEdit.AddShape or ITinEdit.AddShapeZ and an error is raised with a code of:
E_TIN_INTERNAL_ERROR
some form of error was encountered during triangulation. In the rare case an error occurs, it's usually failure to enforce some part of a breakline. In your error handler you can trap for this error code, record the source of geometry in the CurrentObjectClass property (e.g. featureclass name), along with an ID code in CurrentObjectID (e.g. OID), and continue on.
At the end of the edit session your code can check EditErrorCount and if errors exist call SaveEditErrorLog to persist the information to a log file on disk. The ObjectClass and ObjectID you recorded for each instance of an error will be written out along with coordinates identifying the problem locations.
ITinEditErrorLog.CurrentObjectID Property
ID of the shape to be added/edited.
Public Property CurrentObjectID As Long
public long CurrentObjectID {get; set;}
Description
The ID of geometry associated with a triangulation error. You can set this value to be anything meaningful to you like the OID of a feature or the iteration number of a loop.
If you're adding shapes with ITinEdit.AddShape or ITinEdit.AddShapeZ and an error is raised with a code of:
E_TIN_INTERNAL_ERROR
some form of error was encountered during triangulation. In the rare case an error occurs, it's usually failure to enforce some part of a breakline. In your error handler you can trap for this error code, record the source of geometry in the CurrentObjectClass property (e.g. featureclass name), along with an ID code in CurrentObjectID (e.g. OID), and continue on.
At the end of the edit session your code can check EditErrorCount and if errors exist call SaveEditErrorLog to persist the information to a log file on disk. The ObjectClass and ObjectID you recorded for each instance of an error will be written out along with coordinates identifying the problem locations.
ITinEditErrorLog.EditErrorCount Property
The number of errors.
Public ReadOnly Property EditErrorCount As Integer
public int EditErrorCount {get;}
Description
The number of errors encountered while modifying the triangulation.
ITinEditErrorLog.SaveEditErrorLog Method
Saves error log contents to a file.
Public Sub SaveEditErrorLog ( _
ByVal fileName As String _
)
public void SaveEditErrorLog (
string fileName
);
Description
Saves a log file containing information about errors encountered while triangulating. If EditErrorCount is greater than zero at the end of an edit session call SaveEditErrorLog to write out a report.
filename is the location where to write the log file.
Classes that implement ITinEditErrorLog
Classes | Description |
---|---|
Tin | The Esri TIN component. |