skrueger.geotools
Class GeomFilterGenerator.PointFilterGenerator

java.lang.Object
  extended by skrueger.geotools.GeomFilterGenerator
      extended by skrueger.geotools.GeomFilterGenerator.PointFilterGenerator
Enclosing class:
GeomFilterGenerator

public static class GeomFilterGenerator.PointFilterGenerator
extends GeomFilterGenerator

GeomFilterGenerator for a "near distance" constraint.

Author:
Martin Schmitz

Nested Class Summary
 
Nested classes/interfaces inherited from class skrueger.geotools.GeomFilterGenerator
GeomFilterGenerator.BoundingBoxFilterGenerator, GeomFilterGenerator.PointFilterGenerator
 
Field Summary
protected  Point basePoint
          Holds the base constraint (coordinate) relative to the base CRS.
 
Fields inherited from class skrueger.geotools.GeomFilterGenerator
baseCRS
 
Constructor Summary
GeomFilterGenerator.PointFilterGenerator(DirectPosition basePos, double dist)
          Creates a new filter generator.
GeomFilterGenerator.PointFilterGenerator(Point2D basePoint, double dist, CoordinateReferenceSystem crs)
          Creates a new filter generator.
GeomFilterGenerator.PointFilterGenerator(Point basePoint, double radius, CoordinateReferenceSystem crs)
          Creates a new filter generator.
 
Method Summary
protected  GeometryFilterImpl prepareFilter(CoordinateReferenceSystem crs, Class<?> geomClass)
          Prepares a filter with the base point and distance transformed to the given CoordinateReferenceSystem as the "right" argument.
 
Methods inherited from class skrueger.geotools.GeomFilterGenerator
adaptFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basePoint

protected Point basePoint
Holds the base constraint (coordinate) relative to the base CRS.

Constructor Detail

GeomFilterGenerator.PointFilterGenerator

public GeomFilterGenerator.PointFilterGenerator(Point basePoint,
                                                double radius,
                                                CoordinateReferenceSystem crs)
Creates a new filter generator.

Parameters:
basePoint - defines the point for the "near point" constraint
dist - defines the distance around the base point
crs - defines the CRS of base point

GeomFilterGenerator.PointFilterGenerator

public GeomFilterGenerator.PointFilterGenerator(Point2D basePoint,
                                                double dist,
                                                CoordinateReferenceSystem crs)
Creates a new filter generator.

Parameters:
basePoint - defines the point for the "near point" constraint
dist - defines the distance around the base point in base point CRS
crs - defines the CRS of base point

GeomFilterGenerator.PointFilterGenerator

public GeomFilterGenerator.PointFilterGenerator(DirectPosition basePos,
                                                double dist)
Creates a new filter generator.

Parameters:
basePoint - defines the Position for the "near point" constraint
dist - defines the distance around the base point in base point CRS
Method Detail

prepareFilter

protected GeometryFilterImpl prepareFilter(CoordinateReferenceSystem crs,
                                           Class<?> geomClass)
Prepares a filter with the base point and distance transformed to the given CoordinateReferenceSystem as the "right" argument.

Specified by:
prepareFilter in class GeomFilterGenerator
Parameters:
crs - the CoordinateReferenceSystem the point and distance is transformed to