public class DefaultGeoProperty extends java.lang.Object implements GeoProperty<java.lang.Boolean>
GeoProperty.| Modifier and Type | Field and Description |
|---|---|
private java.awt.geom.Area |
area |
| Constructor and Description |
|---|
DefaultGeoProperty(java.util.Collection<Way> ways)
Create DefaultGeoProperty based on a collection of closed ways.
|
DefaultGeoProperty(Relation multipolygon)
Create DefaultGeoProperty based on a multipolygon relation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
get(BBox box)
Look up the property for a coordinate rectangle.
|
java.lang.Boolean |
get(LatLon ll)
Look up the property for a point.
|
java.awt.geom.Area |
getArea()
Returns the area.
|
private final java.awt.geom.Area area
public DefaultGeoProperty(java.util.Collection<Way> ways)
ways - the ways forming the areapublic DefaultGeoProperty(Relation multipolygon)
multipolygon - the multipolygonpublic java.lang.Boolean get(LatLon ll)
GeoPropertyget in interface GeoProperty<java.lang.Boolean>ll - the point coordinatespublic java.lang.Boolean get(BBox box)
GeoPropertyget in interface GeoProperty<java.lang.Boolean>box - the rectanglepublic final java.awt.geom.Area getArea()