com.vividsolutions.jts.index.bintree

Class Key


public class Key
extends java.lang.Object

A Key is a unique identifier for a node in a tree. 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
Version:
1.7

Constructor Summary

Key(Interval interval)

Method Summary

void
computeKey(Interval itemInterval)
return a square envelope containing the argument envelope, whose extent is a power of two and which is based at a power of 2
static int
computeLevel(Interval interval)
Interval
getInterval()
int
getLevel()
double
getPoint()

Constructor Details

Key

public Key(Interval interval)

Method Details

computeKey

public void computeKey(Interval itemInterval)
return a square envelope containing the argument envelope, whose extent is a power of two and which is based at a power of 2

computeLevel

public static int computeLevel(Interval interval)

getInterval

public Interval getInterval()

getLevel

public int getLevel()

getPoint

public double getPoint()