org.shapelogic.filter
Class PolygonSpatialPointFilter

java.lang.Object
  extended by org.shapelogic.filter.BaseFilter<Polygon,IPoint2D>
      extended by org.shapelogic.filter.PolygonPointFilter
          extended by org.shapelogic.filter.PolygonSpatialPointFilter
All Implemented Interfaces:
org.apache.commons.collections.Predicate, IFilter<Polygon,IPoint2D>
Direct Known Subclasses:
PointAboveFilter, PointBelowFilter, PointLeftOfFilter, PointRightOfFilter

public abstract class PolygonSpatialPointFilter
extends PolygonPointFilter

Base class for all the spatially based point filters In order to get the cut off vale you need to know the bounding box for the polygon This is only know when the filter is actually run. So this is set in the setup method. The constraint should be between 0 and 1.

Author:
Sami Badawi

Field Summary
protected  double _constraintNumber
           
protected  double _limit
           
 
Fields inherited from class org.shapelogic.filter.BaseFilter
_collection, _constraint, _parent
 
Constructor Summary
PolygonSpatialPointFilter()
           
 
Method Summary
protected abstract  double coordinateChoser(IPoint2D diagonalVector)
           
 void setup()
           
 
Methods inherited from class org.shapelogic.filter.PolygonPointFilter
getCollection
 
Methods inherited from class org.shapelogic.filter.BaseFilter
evaluate, filter, getConstraint, getParent, setCollection, setConstraint, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_limit

protected double _limit

_constraintNumber

protected double _constraintNumber
Constructor Detail

PolygonSpatialPointFilter

public PolygonSpatialPointFilter()
Method Detail

setup

public void setup()
           throws java.lang.Exception
Specified by:
setup in interface IFilter<Polygon,IPoint2D>
Overrides:
setup in class BaseFilter<Polygon,IPoint2D>
Throws:
java.lang.Exception

coordinateChoser

protected abstract double coordinateChoser(IPoint2D diagonalVector)


Copyright © 2009. All Rights Reserved.