final boolean dateline180Check = getDatelineRule() != DatelineRule.none;
JtsGeometry jtsGeom;
try {
jtsGeom = ctx.makeShape(geometry, dateline180Check, ctx.isAllowMultiOverlap());
if (isAutoValidate())
jtsGeom.validate();
} catch (RuntimeException e) {
//repair:
if (validationRule == ValidationRule.repairConvexHull) {
jtsGeom = ctx.makeShape(geometry.convexHull(), dateline180Check, ctx.isAllowMultiOverlap());
} else if (validationRule == ValidationRule.repairBuffer0) {