Package org.openstreetmap.josm.tools
Class GeoPropertyIndex.GPLevel<T>
- java.lang.Object
-
- org.openstreetmap.josm.tools.GeoPropertyIndex.GPLevel<T>
-
- Enclosing class:
- GeoPropertyIndex<T>
protected static class GeoPropertyIndex.GPLevel<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private BBox
bbox
private GeoPropertyIndex.GPLevel<T>[]
children
private int
level
private GeoPropertyIndex<T>
owner
private GeoPropertyIndex.GPLevel<T>
parent
private T
val
-
Constructor Summary
Constructors Constructor Description GPLevel(int level, BBox bbox, GeoPropertyIndex.GPLevel<T> parent, GeoPropertyIndex<T> owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(LatLon ll)
private T
getBounded(LatLon ll)
(package private) boolean
isInside(LatLon ll)
Checks, if a point is inside this tile.(package private) boolean
isInside(BBox bbox, LatLon ll)
Checks, if a point is inside this tile.String
toString()
-
-
-
Field Detail
-
level
private final int level
-
parent
private final GeoPropertyIndex.GPLevel<T> parent
-
owner
private final GeoPropertyIndex<T> owner
-
children
private GeoPropertyIndex.GPLevel<T>[] children
-
-
Constructor Detail
-
GPLevel
public GPLevel(int level, BBox bbox, GeoPropertyIndex.GPLevel<T> parent, GeoPropertyIndex<T> owner)
-
-
Method Detail
-
getBounded
private T getBounded(LatLon ll)
-
isInside
boolean isInside(LatLon ll)
Checks, if a point is inside this tile. Makes sure, that neighboring tiles do not overlap, i.e. a point exactly on the border of two tiles must be inside exactly one of the tiles.- Parameters:
ll
- the coordinates of the point- Returns:
- true, if it is inside of the box
-
isInside
boolean isInside(BBox bbox, LatLon ll)
Checks, if a point is inside this tile. Makes sure, that neighboring tiles do not overlap, i.e. a point exactly on the border of two tiles must be inside exactly one of the tiles.- Parameters:
bbox
- the tilell
- the coordinates of the point- Returns:
- true, if it is inside of the box
-
-