public static Writer newWriter(Path path) throws IOException {
    return new OutputStreamWriter(
      new FastGzipOutputStream(new BufferedOutputStream(Files.newOutputStream(path,
        StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.CREATE))));
  }
Opens a new gzip (level 1/fast) writer to {@code path}, creating a new one or replacing an existing file at that
path.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/TileSizeStats.java