DbfColumn¶
Namespace: ThinkGeo.Core
This class represents the column information specific to a DBF column.
public class DbfColumn : FeatureSourceColumn
Inheritance object → FeatureSourceColumn → DbfColumn
Properties¶
ColumnType¶
Gets or sets the DBF column type.
public DbfColumnType ColumnType { get; set; }
Property Value¶
Length¶
Gets or sets the length, in characters, of the DBF column.
public int Length { get; set; }
Property Value¶
DecimalLength¶
Gets or sets the number of decimal places used for numeric DBF columns.
public int DecimalLength { get; set; }
Property Value¶
Remarks:
This is the number of decimal places the number represents. This is only applicable if the column type is numeric.
ColumnName¶
Gets or sets the name of the column.
public string ColumnName { get; set; }
Property Value¶
TypeName¶
Gets or sets the type metadata associated with the column.
public string TypeName { get; set; }
Property Value¶
Remarks:
This property is freeform and the type name is not tied to anything. It is wise to try and use familiar type names such as string, integer, date, etc., although it may not fit every different type of FeatureSource. We suggest thar you avoid using this property unless you know the types beforehand or simply want them for display purposes.
MaxLength¶
Gets or sets the maximum length (in characters) for the column.
public int MaxLength { get; set; }
Property Value¶
Remarks:
The maximum length is user defined and not in any way enforced in our default FeatureSource implementation. It is mainly for display purposes or when dealing with a known Feature Source type.
Constructors¶
DbfColumn(string, DbfColumnType, int, int)¶
This method is the constructor for the DbfColumn.
public DbfColumn(string columnName, DbfColumnType columnType, int length, int decimalLength)
Parameters¶
columnName string
This parameter represents the name of the column in the DBF.
columnType DbfColumnType
This parameter represents the type of the column in the DBF.
length int
This parameter represents the length of the column in the DBF.
decimalLength int
This parameter represents the number of decimal places the column has, if it is a numeric type.
Remarks:
None