T
- the property (like land/water or nation)public class GeoPropertyIndex<T> extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
GeoPropertyIndex.GeoProperty<T>
A method to look up a property of the earth surface.
|
protected static class |
GeoPropertyIndex.GPLevel<T> |
Modifier and Type | Field and Description |
---|---|
private static boolean |
DEBUG |
private GeoPropertyIndex.GeoProperty<T> |
geoProp |
private GeoPropertyIndex.GPLevel<T> |
lastLevelUsed |
private int |
maxLevel |
private GeoPropertyIndex.GPLevel<T> |
root |
Constructor and Description |
---|
GeoPropertyIndex(GeoPropertyIndex.GeoProperty<T> geoProp,
int maxLevel)
Create new GeoPropertyIndex.
|
Modifier and Type | Method and Description |
---|---|
T |
get(LatLon ll)
Look up the property for a certain point.
|
static int |
index(LatLon ll,
int level) |
private final int maxLevel
private final GeoPropertyIndex.GeoProperty<T> geoProp
private final GeoPropertyIndex.GPLevel<T> root
private GeoPropertyIndex.GPLevel<T> lastLevelUsed
private static final boolean DEBUG
public GeoPropertyIndex(GeoPropertyIndex.GeoProperty<T> geoProp, int maxLevel)
geoProp
- the input property that should be made faster by this indexmaxLevel
-