geom = cutUnwrappedGeomInto360(geom);//returns same or new geom assert geom.getEnvelopeInternal().getWidth() <= 360; assert ! geom.getClass().equals(GeometryCollection.class) : "GeometryCollection unsupported";//double check
geom = cutUnwrappedGeomInto360(geom);//returns same or new geom assert geom.getEnvelopeInternal().getWidth() <= 360; assert ! geom.getClass().equals(GeometryCollection.class) : "GeometryCollection unsupported";//double check