public GeometryException addGeometryDetails(String original, Geometry geometryCollection) {
    return addDetails(() -> {
      var wktWriter = new WKTWriter();
      var wkbWriter = new WKBWriter();
      var base64 = Base64.getEncoder();
      return """
        %s (wkt): %s
        %s (wkb): %s
        """.formatted(
        original, wktWriter.write(geometryCollection),
        original, base64.encodeToString(wkbWriter.write(geometryCollection))
      ).strip();
    });
  }
Logs the error but if {@code logDetails} is true, then also prints detailed debugging info.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeometryException.java