public static ReadableTileArchive newReader(TileArchiveConfig archive, PlanetilerConfig config)
    throws IOException {
    var options = archive.applyFallbacks(config.arguments());
    return switch (archive.format()) {
      case MBTILES -> Mbtiles.newReadOnlyDatabase(archive.getLocalPath(), options);
      case PMTILES -> ReadablePmtiles.newReadFromFile(archive.getLocalPath());
      case CSV, TSV -> throw new UnsupportedOperationException("reading CSV is not supported");
      case PROTO, PBF -> throw new UnsupportedOperationException("reading PROTO is not supported");
      case JSON -> throw new UnsupportedOperationException("reading JSON is not supported");
      case FILES -> ReadableFilesArchive.newReader(archive.getLocalPath(), options);
    };
  }
Returns a new {@link ReadableTileArchive} from the string definition in {@code archive}.

@throws IOException if an error occurs opening the resource.
planetiler-core/src/main/java/com/onthegomap/planetiler/archive/TileArchives.java