Skip to content

FeatureSourceColumn

Namespace: ThinkGeo.Core

This class represents a column contained within a FeatureSource.

public class FeatureSourceColumn

Inheritance ObjectFeatureSourceColumn

Remarks:

A FeatureSource is typically represented by a number of InternalFeatures and their column data. This column represents the characteristics of that data.

Properties

ColumnName

This property returns the name of the column.

public string ColumnName { get; set; }

Property Value

String

Remarks:

None

TypeName

This property returns the type name of the column.

public string TypeName { get; set; }

Property Value

String

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

This property returns the maximum length of the column.

public int MaxLength { get; set; }

Property Value

Int32

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

FeatureSourceColumn()

This is the constructor to create a FeatureSourceColumn.

public FeatureSourceColumn()

Remarks:

This constructor is the default, but should not be used.

FeatureSourceColumn(String)

This is the constructor to create a FeatureSourceColumn.

public FeatureSourceColumn(string columnName)

Parameters

columnName String
This parameter represents the name of the column.

Remarks:

This is the constructor that should be used.

FeatureSourceColumn(String, String, Int32)

This is the constructor to create a FeatureSourceColumn.

public FeatureSourceColumn(string columnName, string typeName, int maxLength)

Parameters

columnName String
This parameter represents the name of the column.

typeName String
This parameter represents the type name of the column.

maxLength Int32
This parameter represents the maximum length of the column.

Remarks:

This is the constructor that should be used.

Methods

ToString()

Returns column name of FeatureSourceColumn

public string ToString()

Returns

String
Returns column name of FeatureSourceColumn