Skip to content

SpatialIndex

Namespace: ThinkGeo.Core

Provides a base abstraction for spatial index implementations that store and query feature bounds.

public abstract class SpatialIndex

Inheritance objectSpatialIndex

Properties

IsOpen

Gets a value indicating whether the index is currently open.

public bool IsOpen { get; }

Property Value

bool

CanDelete

Gets a value indicating whether this index supports deleting entries.

public bool CanDelete { get; protected set; }

Property Value

bool

Methods

Add(BaseShape)

Adds a feature represented by the provided shape.

public void Add(BaseShape baseShape)

Parameters

baseShape BaseShape

Returns

void

Add(Feature)

Adds the specified feature directly.

public void Add(Feature feature)

Parameters

feature Feature

Returns

void

AddCore(Feature)

When overridden, inserts the feature into the index.

protected abstract void AddCore(Feature feature)

Parameters

feature Feature

Returns

void

Delete(Feature)

Deletes the specified feature from the index.

public void Delete(Feature feature)

Parameters

feature Feature

Returns

void

Delete(BaseShape)

Performs delete.

public void Delete(BaseShape baseShape)

Parameters

baseShape BaseShape
The base shape.

Returns

void

DeleteCore(Feature)

Provides the overridable implementation that performs delete.

protected void DeleteCore(Feature feature)

Parameters

feature Feature
The feature.

Returns

void

Close()

Closes the instance and releases any resources it holds.

public void Close()

Returns

void

CloseCore()

Provides the overridable implementation that closes the instance and releases any resources it holds.

protected void CloseCore()

Returns

void

GetFeatureCount()

Returns feature count from the underlying data source.

public int GetFeatureCount()

Returns

int
The result of the operation.

GetFeatureCountCore()

Provides the overridable implementation that returns feature count from the underlying data source.

protected int GetFeatureCountCore()

Returns

int
The result of the operation.

GetFeatureIdsIntersectingBoundingBox(RectangleShape)

Returns the IDs of the features available in the underlying data source.

public Collection<string> GetFeatureIdsIntersectingBoundingBox(RectangleShape boundingBox)

Parameters

boundingBox RectangleShape
The bounding box used to constrain the query.

Returns

Collection<string>
The result of the operation.

GetFeatureIdsIntersectingBoundingBoxCore(RectangleShape)

Provides the overridable implementation that returns the IDs of the features available in the underlying data source.

protected abstract Collection<string> GetFeatureIdsIntersectingBoundingBoxCore(RectangleShape boundingBox)

Parameters

boundingBox RectangleShape
The bounding box used to constrain the query.

Returns

Collection<string>
The result of the operation.

Open()

Opens the instance and initializes the resources it depends on.

public void Open()

Returns

void

OpenCore()

Provides the overridable implementation that opens the instance and initializes the resources it depends on.

protected void OpenCore()

Returns

void