Defines group statistic operations for columns of shapefile attribute table. More...
Public Member Functions | |
void | AddFieldIndex (int FieldIndex, tkFieldStatOperation Operation) |
Adds statistic operation for a specified field. More... | |
void | AddFieldName (string Fieldname, tkFieldStatOperation Operation) |
Adds statistic operation for a specified field. More... | |
void | Clear () |
Clears all previously added operations More... | |
string | get_ErrorMsg (int ErrorCode) |
Gets the description of the specific error code. More... | |
int | get_FieldIndex (int operationIndex) |
Gets field index for operation at specified position in the list. More... | |
string | get_FieldName (int operationIndex) |
Gets field name for operation at specified position in the list. More... | |
tkFieldStatOperation | get_Operation (int operationIndex) |
Gets operation at specified position in the list. More... | |
bool | get_OperationIsValid (int operationIndex) |
Gets the value of IsValid flag for operation. More... | |
tkFieldOperationValidity | get_OperationIsValidReason (int operationIndex) |
Gets a value indicating the reason why the specific operation is invalid. More... | |
bool | Remove (int operationIndex) |
Removes operations with specified index. More... | |
bool | Validate (Shapefile sf) |
Checks whether current list of operations is applicable for a given shapefile. More... | |
Properties | |
int | Count [get] |
Gets the number of added operations. More... | |
string | Key [get, set] |
A text string associated with object. Any value can be stored by developer in this property. More... | |
int | LastErrorCode [get] |
Gets the code of last error which took place inside this object. More... | |
Defines group statistic operations for columns of shapefile attribute table.
Multiple operations can be specified for each field. The results will be written to attribute table of resulting shapefile. An instance of this class is used as a parameter by Shapefile.AggregateShapesWithStats and Shapefile.DissolveWithStats methods. See code sample in description of Shapefile.DissolveWithStats method.
Validation of group operations against counties shapefiles and displaying report about validation:
void FieldStatOperations.AddFieldIndex | ( | int | FieldIndex, |
tkFieldStatOperation | Operation | ||
) |
Adds statistic operation for a specified field.
FieldIndex | Field index in input shapefile. |
Operation | Operation to calculate. |
void FieldStatOperations.AddFieldName | ( | string | Fieldname, |
tkFieldStatOperation | Operation | ||
) |
Adds statistic operation for a specified field.
Fieldname | Name of field in input shapefile (case-insensitive) |
Operation | Operation to calculate. |
void FieldStatOperations.Clear | ( | ) |
Clears all previously added operations
string FieldStatOperations.get_ErrorMsg | ( | int | ErrorCode | ) |
Gets the description of the specific error code.
ErrorCode | The error code returned by LastErrorCode property. |
int FieldStatOperations.get_FieldIndex | ( | int | operationIndex | ) |
Gets field index for operation at specified position in the list.
operationIndex | Index of operation in list. |
string FieldStatOperations.get_FieldName | ( | int | operationIndex | ) |
Gets field name for operation at specified position in the list.
operationIndex | Index of operation in list. |
tkFieldStatOperation FieldStatOperations.get_Operation | ( | int | operationIndex | ) |
Gets operation at specified position in the list.
operationIndex | Index of operation in list. |
bool FieldStatOperations.get_OperationIsValid | ( | int | operationIndex | ) |
Gets the value of IsValid flag for operation.
The flag is set only after FieldStatOperations.Validate methods was called. The same list of operations may be valid for one shapefile and invalid for another.
operationIndex | Index of operation in list. |
tkFieldOperationValidity FieldStatOperations.get_OperationIsValidReason | ( | int | operationIndex | ) |
Gets a value indicating the reason why the specific operation is invalid.
operationIndex | Index of operation to check the property for. |
bool FieldStatOperations.Remove | ( | int | operationIndex | ) |
Removes operations with specified index.
operationIndex | Index of operation to remove. |
bool FieldStatOperations.Validate | ( | Shapefile | sf | ) |
Checks whether current list of operations is applicable for a given shapefile.
For invalid operations get_OperationIsValid flag and get_OperationIsValidReason property are set. Invalid operations will be skipped when when doing statistic calculations and no output fields will be created for them.
sf | Shapefile to validate operations list against. |
|
get |
Gets the number of added operations.
|
getset |
A text string associated with object. Any value can be stored by developer in this property.
|
get |
Gets the code of last error which took place inside this object.