private static double wrapDouble(double value, double max) {
    value %= max;
    if (value < 0) {
      value += max;
    }
    return value;
  }
Returns a copy of {@code geom} with coordinates rounded to {@code #tilePrecision} and fixes any polygon
self-intersections or overlaps that may have caused.

@throws GeometryException if an unrecoverable robustness exception prevents us from fixing the geometry
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeoUtils.java