Table of Contents

Class SIRtree<TItem>

Namespace
NetTopologySuite.Index.Strtree
Assembly
NetTopologySuite.dll

One-dimensional version of an STR-packed R-tree. SIR stands for "Sort-Interval-Recursive". STR-packed R-trees are described in: P. Rigaux, Michel Scholl and Agnes Voisard. Spatial Databases With Application To GIS. Morgan Kaufmann, San Francisco, 2002.

public class SIRtree<TItem> : AbstractSTRtree<Interval, TItem>

Type Parameters

TItem
Inheritance
SIRtree<TItem>
Inherited Members

Constructors

SIRtree()

Constructs an SIRtree with the default (10) node capacity.

public SIRtree()

SIRtree(int)

Constructs an SIRtree with the given maximum number of child nodes that a node may have.

public SIRtree(int nodeCapacity)

Parameters

nodeCapacity int

Properties

IntersectsOp

protected override AbstractSTRtree<Interval, TItem>.IIntersectsOp IntersectsOp { get; }

Property Value

AbstractSTRtree<Interval, TItem>.IIntersectsOp

Methods

CreateNode(int)

protected override AbstractNode<Interval, TItem> CreateNode(int level)

Parameters

level int

Returns

AbstractNode<Interval, TItem>

GetComparer()

protected override IComparer<IBoundable<Interval, TItem>> GetComparer()

Returns

IComparer<IBoundable<Interval, TItem>>

Insert(double, double, TItem)

Inserts an item having the given bounds into the tree.

public void Insert(double x1, double x2, TItem item)

Parameters

x1 double
x2 double
item TItem

Query(double)

Returns items whose bounds intersect the given value.

public IList<TItem> Query(double x)

Parameters

x double

Returns

IList<TItem>

Query(double, double)

Returns items whose bounds intersect the given bounds.

public IList<TItem> Query(double x1, double x2)

Parameters

x1 double

Possibly equal to x2.

x2 double

Possibly equal to x1.

Returns

IList<TItem>