|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITinEditErrorLog
Provides access to TIN's internal edit errors.
This interface is used to catch and report problems that may occur when inserting geometry into a triangulation.
Method Summary | |
---|---|
void |
clearEditErrorLog()
Clears existing error log contents. |
String |
getCurrentObjectClassName()
Name representing a group of shapes to be added/edited. |
int |
getCurrentObjectID()
ID of the shape to be added/edited. |
int |
getEditErrorCount()
The number of errors. |
void |
saveEditErrorLog(String fileName)
Saves error log contents to a file. |
void |
setCurrentObjectClassName(String pName)
Name representing a group of shapes to be added/edited. |
void |
setCurrentObjectID(int pID)
ID of the shape to be added/edited. |
Method Detail |
---|
void clearEditErrorLog() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveEditErrorLog(String fileName) throws IOException, AutomationException
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.
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getEditErrorCount() throws IOException, AutomationException
The number of errors encountered while modifying the triangulation.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCurrentObjectClassName(String pName) throws IOException, AutomationException
pName
- The pName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCurrentObjectClassName() throws IOException, AutomationException
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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCurrentObjectID(int pID) throws IOException, AutomationException
pID
- The pID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCurrentObjectID() throws IOException, AutomationException
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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |