use of com.revolsys.geometry.index.visitor.LineSegmentIntersectionVisitor in project com.revolsys.open by revolsys.
the class LineSegmentIndex method queryIntersections.
public List<Geometry> queryIntersections(final LineSegment querySeg) {
final BoundingBox env = querySeg.getBoundingBox();
final LineSegmentIntersectionVisitor visitor = new LineSegmentIntersectionVisitor(querySeg);
forEach(env, visitor);
final List<Geometry> intersections = new ArrayList<>(visitor.getIntersections());
return intersections;
}
Aggregations