public class GeoFilter
extends java.lang.Object
Constructor and Description |
---|
GeoFilter()
Create a Geographic filter without a predefined shape.
|
GeoFilter(GeoShape shape)
Create a Geographic filter using the specified geographic shape
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPoint(GeoCoord coord)
Check the given coordinates to see if it intersects, or lies near, the
target geographic entity.
|
GeoShape |
getFilterShape()
Get the internal geographic shape used to filter points.
|
double |
getRadius()
Get the radius for comparisons.
|
void |
setFilterShape(GeoShape shape)
Set the shape used to perform the geographic filtering.
|
void |
setRadius(double rad)
Set the comparison radius.
|
public GeoFilter()
public GeoFilter(GeoShape shape)
shape
- the shape to use for the filterpublic boolean checkPoint(GeoCoord coord)
coord
- the geographic coordinate to check.public GeoShape getFilterShape()
public double getRadius()
public void setFilterShape(GeoShape shape)
shape
- the shape to use for filtering.public void setRadius(double rad)
rad
- the comparison radius, in meters.