public static Geometry fixPolygon(Geometry geom) throws GeometryException {
    try {
      return geom.buffer(0);
    } catch (TopologyException e) {
      throw new GeometryException("fix_polygon_topology_error", "robustness error fixing polygon: " + e);
    }
  }
Attempt to fix any self-intersections or overlaps in {@code geom}.

@throws GeometryException if a robustness error occurred
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeoUtils.java