public static TileArchiveConfig from(String string) {
    // unix paths parse fine as URIs, but need to explicitly parse windows paths with backslashes
    if (string.contains("\\")) {
      String[] parts = string.split("\\?", 2);
      string = Path.of(parts[0]).toUri().toString();
      if (parts.length > 1) {
        string += "?" + parts[1];
      }
    }
    for (Map.Entry<String, String> uriEncoding : URI_ENCODINGS.entrySet()) {
      string = string.replace(uriEncoding.getKey(), uriEncoding.getValue());
    }

    return from(URI.create(string));
  }
Parses a string definition of a tileset from a URI-like string.
planetiler-core/src/main/java/com/onthegomap/planetiler/archive/TileArchiveConfig.java