source: josm/trunk/src/org/openstreetmap/josm/tools/GeoProperty.java@ 11995

Last change on this file since 11995 was 11264, checked in by bastiK, 7 years ago

refactor GeoProperty implementation of RightAndLefthandTraffic to generic separate class DefaultGeoProperty (see #10387)

  • Property svn:eol-style set to native
File size: 763 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4import org.openstreetmap.josm.data.coor.LatLon;
5import org.openstreetmap.josm.data.osm.BBox;
6
7/**
8 * A method to look up a property of the earth surface.
9 *
10 * User input for the {@link GeoPropertyIndex}.
11 * @param <T> the property
12 */
13public interface GeoProperty<T> {
14
15 /**
16 * Look up the property for a point.
17 * @param ll the point coordinates
18 * @return property value at that point. Must not be null.
19 */
20 T get(LatLon ll);
21
22 /**
23 * Look up the property for a coordinate rectangle.
24 * @param box the rectangle
25 * @return the property, if it is the same in the entire rectangle;
26 * null otherwise
27 */
28 T get(BBox box);
29
30}
Note: See TracBrowser for help on using the repository browser.