boolean res = g.isSimple();
assertTrue(res);
assertTrue(g.isSimpleRelaxed());
Geometry resg = OperatorSimplifyOGC.local().execute(g.getEsriGeometry(), null, true, null);
OGCGeometry og = OGCGeometry.createFromEsriGeometry(resg, null);
assertTrue(og.geometryType().equals("Polygon"));
assertTrue(((OGCPolygon)og).numInteriorRing() == 2);
}
{
// two holes touch, bad orientation
String s = "{\"rings\":[[[-100, -100], [-100, 100], [100, 100], [100, -100], [-100, -100]], [[0, 0], [5, 5], [10, 0], [0, 0]], [[10, 10], [0, 10], [5, 5], [10, 10]]]}";