protomaps / go-pmtiles

Single-file executable tool for working with PMTiles archives
BSD 3-Clause "New" or "Revised" License
356 stars 49 forks source link

Add quiet mode #117

Open ebbishop opened 8 months ago

ebbishop commented 8 months ago

pmtiles version: 1.11.0, 926183a1, built at 2023-10-31T00:41:14Z OS: MacOS 11.7 and Ubuntu 22.04

It would be great to have a quiet mode available, especially when running pmtiles as part of a CI/CD pipeline. Converting mbtiles to pmtiles in our pipeline currently produces ~4,000 lines of progress bar logs. This doesn't add anything of value in this context, and it would be helpful to have a way to turn that off.

bdon commented 8 months ago

This would a good addition. I'd prefer keeping progress the default and adding --quiet instead of making quiet the default and adding --progress. What program is earlier in your pipeline that creates MBTiles?

ebbishop commented 8 months ago

Agreed, it makes sense to have --quiet as an opt-in feature.

We're using tippecanoe to build mbtiles from a PostGIS db, then converting to pmtiles.

bdon commented 8 months ago

If you are using the maintained version of tippecanoe https://github.com/felt/tippecanoe you can generate PMTiles directly and don't need to use go-pmtiles at all.

bdon commented 7 months ago