public class Vicinity extends Object
| Constructor and Description |
|---|
Vicinity() |
Vicinity(GeojsonPoint center,
String radius) |
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
calculateBounds() |
BoundingBox |
calculateBounds(CRSUtils crsUtils)
Calculates bounding box with the given CRS context.
|
GeojsonPoint |
getCenter() |
void |
setCenter(GeojsonPoint center) |
void |
setCrs(String crs) |
void |
setRadius(String radius) |
String |
toString() |
Vicinity()
public Vicinity(GeojsonPoint center, String radius)
center - the center point.radius - the distance around the centerpublic BoundingBox calculateBounds()
public BoundingBox calculateBounds(CRSUtils crsUtils)
crsUtils - the reference context.IllegalStateException - if invalid crs was set.public void setCrs(String crs)
crs - sets the coordinate reference system, e.g. 'EPSG:25832'public void setCenter(GeojsonPoint center)
center - the center coordinates.public GeojsonPoint getCenter()
public void setRadius(String radius)
radius - the vicinity's radius.NumberFormatException - if radius could not be parsed to a double
value.Copyright © 2013–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.