This class is designed to allow filtering based upon geographic coordintes.
It tests points against a geographic shape to determine if the point is
within the shape, within a certain radius of the shape, or outside the
Check the given coordinates to see if it intersects, or lies near, the
target geographic entity. If the check radius is zero, this method
checks for strict inclusion. If the radius > 0, then this method checks
a rectangle with width and height equal to the specified radius. The
check is performed using coordinate space, rather than a physical check.
coord - the geographic coordinate to check.
true if the coordinate lies near or within the geographic
region, false otherwise.
Set the shape used to perform the geographic filtering.
shape - the shape to use for filtering.
public void setRadius(double rad)
Set the comparison radius. If the radius is zero (the default), the
filter checks for strict inclusion. If the radius is greater than zero,
the filter checks to determine if the coordinate is within the specified
radius from the geographic object.