This document is archived and information here might be outdated.  Recommended version.


ILasPointEdit.EditClassCodeByClass Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabaseExtensions)  

ILasPointEdit.EditClassCodeByClass Method

Set class code and flags (negative classCode value indicates no code change).

[Visual Basic .NET]
Public Sub EditClassCodeByClass ( _
    ByVal FileIndex As Integer, _
    ByVal pPointIDs As IDoubleArray, _
    ByVal newCode As Integer, _
    ByVal withheldFlag As esriLasClassFlagEditType, _
    ByVal keyPointFlag As esriLasClassFlagEditType, _
    ByVal syntheticFlag As esriLasClassFlagEditType, _
    ByRef pbHasChange As Boolean _
)
[C#]
public void EditClassCodeByClass (
    int FileIndex,
    IDoubleArray pPointIDs,
    int newCode,
    esriLasClassFlagEditType withheldFlag,
    esriLasClassFlagEditType keyPointFlag,
    esriLasClassFlagEditType syntheticFlag,
    ref bool pbHasChange
);
[C++]
HRESULT EditClassCodeByClass(
  long FileIndex,
  IDoubleArray* pPointIDs,
  long newCode,
  esriLasClassFlagEditType withheldFlag,
  esriLasClassFlagEditType keyPointFlag,
  esriLasClassFlagEditType syntheticFlag,
  VARIANT_BOOL* pbHasChange
);
[C++]

Parameters FileIndex [in] FileIndex is a parameter of type long pPointIDs [in]
pPointIDs is a parameter of type IDoubleArray newCode [in] newCode is a parameter of type long withheldFlag [in]
withheldFlag is a parameter of type esriLasClassFlagEditType keyPointFlag [in]
keyPointFlag is a parameter of type esriLasClassFlagEditType syntheticFlag [in]
syntheticFlag is a parameter of type esriLasClassFlagEditType pbHasChange [out] pbHasChange is a parameter of type VARIANT_BOOL

Product Availability

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

Description

EditClassCodeByClass is used to change the class code and the bit encoded class flags for points in las files. 

fileIndex is the index to the specific las file, as referenced by the las dataset, that will be modified. Valid fileIndex values range from 0 .. ILasDataset.FileCount-1.

pPointIDs is the array of point indices for which the class codes and/or class flags need to be changed. These IDs are 1 based.

newCode is the new class code to be assigned to the input points. Set this to -1 if you only want to leave the class code unchanged and wish to just work with the class flags of the input points.

withheldFlag indicates whether to set, clear or leave unchanged the withheld class flag of the input points.

keyPointFlag indicates whether to set, clear or leave unchanged the key point class flag of the input points.

syntheticFlag indicates whether to set, clear or leave unchanged the synthetic class flag of the input points.

pBHasChange indicates whether atleast one change has been made to the input set of points. If all the input points already has the same class code as newCode or the combination of flags specified by the input arguments, no edits will be made to the points and pBHasChange will be false.


Notes:

This method edits the las files containing the points. There is no support for undo. Consider the need to backup your las files before calling ILasPointEdit methods.

See Also

ILasPointEdit Interface