SpatialIndex¶
Namespace: ThinkGeo.Core
Provides a base abstraction for spatial index implementations that store and query feature bounds.
public abstract class SpatialIndex
Inheritance object → SpatialIndex
Properties¶
IsOpen¶
Gets a value indicating whether the index is currently open.
public bool IsOpen { get; }
Property Value¶
CanDelete¶
Gets a value indicating whether this index supports deleting entries.
public bool CanDelete { get; protected set; }
Property Value¶
Methods¶
Add(BaseShape)¶
Adds a feature represented by the provided shape.
public void Add(BaseShape baseShape)
Parameters¶
baseShape BaseShape
Returns¶
Add(Feature)¶
Adds the specified feature directly.
public void Add(Feature feature)
Parameters¶
feature Feature
Returns¶
AddCore(Feature)¶
When overridden, inserts the feature into the index.
protected abstract void AddCore(Feature feature)
Parameters¶
feature Feature
Returns¶
Delete(Feature)¶
Deletes the specified feature from the index.
public void Delete(Feature feature)
Parameters¶
feature Feature
Returns¶
Delete(BaseShape)¶
Performs delete.
public void Delete(BaseShape baseShape)
Parameters¶
baseShape BaseShape
The base shape.
Returns¶
DeleteCore(Feature)¶
Provides the overridable implementation that performs delete.
protected void DeleteCore(Feature feature)
Parameters¶
feature Feature
The feature.
Returns¶
Close()¶
Closes the instance and releases any resources it holds.
public void Close()
Returns¶
CloseCore()¶
Provides the overridable implementation that closes the instance and releases any resources it holds.
protected void CloseCore()
Returns¶
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¶
OpenCore()¶
Provides the overridable implementation that opens the instance and initializes the resources it depends on.
protected void OpenCore()