Skip to content

BuildingIndexBasFileFeatureSourceEventArgs

Namespace: ThinkGeo.Core

Provides progress information while a BAS feature source builds its R-tree index.

public class BuildingIndexBasFileFeatureSourceEventArgs : System.EventArgs

Inheritance objectEventArgsBuildingIndexBasFileFeatureSourceEventArgs

Properties

RecordCount

Gets the total record count to build rTree index.

public int RecordCount { get; }

Property Value

int

CurrentRecordOffset

Gets the current record index for building rTree index.

public long CurrentRecordOffset { get; }

Property Value

long

CurrentFeature

Gets the current feature for building rTree index.

public Feature CurrentFeature { get; }

Property Value

Feature

StartProcessTime

Gets the starting process time for building the index.

public DateTime StartProcessTime { get; }

Property Value

DateTime

Cancel

Gets or sets to see if we need to cancel the building index of current record.

public bool Cancel { get; set; }

Property Value

bool

ShapePathFilename

Gets the BAS/shape file path being indexed.

public string ShapePathFilename { get; }

Property Value

string

Constructors

BuildingIndexBasFileFeatureSourceEventArgs()

This is the default constructor of the event args.

public BuildingIndexBasFileFeatureSourceEventArgs()

Remarks:

If you use this constructor, you have to set the properties manually.

BuildingIndexBasFileFeatureSourceEventArgs(int, long, Feature, DateTime, bool)

This is the constructor of the event args by passing the desired parameters.

public BuildingIndexBasFileFeatureSourceEventArgs(int recordCount, long currentRecordOffset, Feature currentFeature, DateTime startProcessTime, bool cancel)

Parameters

recordCount int

currentRecordOffset long

currentFeature Feature

startProcessTime DateTime

cancel bool

BuildingIndexBasFileFeatureSourceEventArgs(int, long, Feature, DateTime, bool, string)

Initializes a new instance of the event args with the supplied progress information.

public BuildingIndexBasFileFeatureSourceEventArgs(int recordCount, long currentRecordOffset, Feature currentFeature, DateTime startProcessTime, bool cancel, string shapePathFilename)

Parameters

recordCount int
Total number of records that will be processed.

currentRecordOffset long
Zero-based offset of the current record.

currentFeature Feature
Feature that is currently being indexed.

startProcessTime DateTime
Time when the index build started.

cancel bool
Initial cancellation state.

shapePathFilename string
Full path to the BAS/shape file being processed.