p1.add(ridgeDirection.mult(-1000)),
p1.add(ridgeDirection.mult(1000))
));
if (intersections.size() < 2) {
throw new InvalidGeometryException(
"cannot handle roof geometry for id "
+ area.getOsmObject().id);
}
//TODO choose outermost instead of any pair of intersections