public class Vicinity
extends java.lang.Object
| Constructor and Description |
|---|
Vicinity() |
Vicinity(org.locationtech.jts.geom.Point center,
double radius) |
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
calculateBounds() |
BoundingBox |
calculateBounds(CRSUtils crsUtils)
Calculates bounding box with the given CRS context.
|
org.locationtech.jts.geom.Point |
getCenter() |
java.lang.String |
getCrs() |
double |
getRadius() |
void |
setCenter(org.locationtech.jts.geom.Point center) |
void |
setCrs(java.lang.String crs) |
void |
setRadius(double radius) |
java.lang.String |
toString() |
Vicinity()
public Vicinity(org.locationtech.jts.geom.Point center,
double radius)
center - the center point.radius - the distance around the centerpublic BoundingBox calculateBounds()
public BoundingBox calculateBounds(CRSUtils crsUtils)
crsUtils - the reference context.java.lang.IllegalStateException - if invalid crs was set.public void setCrs(java.lang.String crs)
crs - sets the coordinate reference system, e.g. 'EPSG:25832'public java.lang.String getCrs()
public void setRadius(double radius)
public double getRadius()
public void setCenter(org.locationtech.jts.geom.Point center)
center - the center coordinates.public org.locationtech.jts.geom.Point getCenter()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013–2019 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.