Class GeoPropertyIndex<T>

java.lang.Object
org.openstreetmap.josm.tools.GeoPropertyIndex<T>
Type Parameters:
T - the property (like land/water or nation)

public class GeoPropertyIndex<T> extends Object
Fast index to look up properties of the earth surface.

It is expected that there is a relatively slow method to look up the property for a certain coordinate and that there are larger areas with a uniform property.

This index tries to find rectangles with uniform property and caches them. Rectangles are subdivided, if there are different properties within. (Up to a maximum level, when the slow method is used again.)