Expected: non-empty degenerate polygon.
Actual: empty geometry.
Is there a different way I should be calling the convex-hull operator?
Relates SF4H-181.
privatestaticclassOnePointCursorextendsGeometryCursor {
privatebooleanflag = true;
OnePointCursor() {}
publicGeometrynext() {
if (flag) {
flag = false;
returnnewPoint(1.2, 3.4);
} elsereturnnull;
}
publicintgetGeometryID() {
thrownewUnsupportedOperationException();
}
}
@TestpublicstaticvoidtestOnePoint() {
GeometryCursorgeomCursor = newOnePointCursor();
GeometryCursorconvexResult = OperatorConvexHull.local().execute(geomCursor, true, null);
Geometryresult = convexResult.next();
System.err.println(result); // {"rings":[]}assertFalse(result.isEmpty()); // junit.framework.AssertionFailedError
}cc @JordanMLee
Expected: non-empty degenerate polygon.
Actual: empty geometry.
Is there a different way I should be calling the convex-hull operator?
Relates SF4H-181.
cc @JordanMLee