public boolean isAnyTargetComponentInTest(Geometry testGeom){
  PointLocator locator=new PointLocator();
  for (Iterator i=representativePts.iterator(); i.hasNext(); ) {
    Coordinate p=(Coordinate)i.next();
    if (locator.intersects(p,testGeom))     return true;
  }
  return false;
}

public boolean isAnyTargetComponentInTest ( Geometry testGeom ) { PointLocator locator = new PointLocator ( ) ; for ( Iterator i = representativePts . iterator ( ) ; i . hasNext ( ) ; ) { Coordinate p = ( Coordinate ) i . next ( ) ; if ( locator . intersects ( p , testGeom ) ) return true ; } return false ; }
tests whether any representative of the target geometry intersects the test geometry . this is useful in a / a , a / l , a / p , l / p , and p / p cases .
