Class Key
A Key is a unique identifier for a node in a quadtree.
It contains a lower-left point and a level number. The level number
is the power of two for the size of the node envelope.
Inheritance
System.Object
Key
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Common.Collections
Assembly: Mars.Common.dll
Syntax
public class Key
Constructors
| Improve this Doc View SourceKey(Envelope)
Declaration
public Key(Envelope itemEnv)
Parameters
Type | Name | Description |
---|---|---|
NetTopologySuite.Geometries.Envelope | itemEnv |
Properties
| Improve this Doc View SourceCentre
Declaration
public Coordinate Centre { get; }
Property Value
Type | Description |
---|---|
NetTopologySuite.Geometries.Coordinate |
Envelope
Declaration
public Envelope Envelope { get; }
Property Value
Type | Description |
---|---|
NetTopologySuite.Geometries.Envelope |
Level
Declaration
public int Level { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Point
Declaration
public Coordinate Point { get; }
Property Value
Type | Description |
---|---|
NetTopologySuite.Geometries.Coordinate |
Methods
| Improve this Doc View SourceComputeKey(Envelope)
Return a square envelope containing the argument envelope,
whose extent is a power of two and which is based at a power of 2.
Declaration
public void ComputeKey(Envelope itemEnv)
Parameters
Type | Name | Description |
---|---|---|
NetTopologySuite.Geometries.Envelope | itemEnv |
ComputeQuadLevel(Envelope)
Declaration
public static int ComputeQuadLevel(Envelope env)
Parameters
Type | Name | Description |
---|---|---|
NetTopologySuite.Geometries.Envelope | env |
Returns
Type | Description |
---|---|
System.Int32 |