org.shapelogic.filter
Class PolygonSpatialPointFilter
java.lang.Object
org.shapelogic.filter.BaseFilter<Polygon,IPoint2D>
org.shapelogic.filter.PolygonPointFilter
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_limit
protected double _limit
_constraintNumber
protected double _constraintNumber
PolygonSpatialPointFilter
public PolygonSpatialPointFilter()
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.