Skip to content

Commit

Permalink
Update show.go to show a less ambiguous "(long: X, lat: Y)" string, i…
Browse files Browse the repository at this point in the history
…nstead of two plain numbers. (#129)
  • Loading branch information
bramp authored Feb 2, 2024
1 parent 85a73a5 commit c402c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmtiles/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ func Show(_ *log.Logger, bucketURL string, key string, showMetadataOnly bool, sh
fmt.Printf("pmtiles spec version: %d\n", header.SpecVersion)
// fmt.Printf("total size: %s\n", humanize.Bytes(uint64(r.Size())))
fmt.Printf("tile type: %s\n", tileType)
fmt.Printf("bounds: %f,%f %f,%f\n", float64(header.MinLonE7)/10000000, float64(header.MinLatE7)/10000000, float64(header.MaxLonE7)/10000000, float64(header.MaxLatE7)/10000000)
fmt.Printf("bounds: (long: %f, lat: %f) (long: %f, lat: %f)\n", float64(header.MinLonE7)/10000000, float64(header.MinLatE7)/10000000, float64(header.MaxLonE7)/10000000, float64(header.MaxLatE7)/10000000)
fmt.Printf("min zoom: %d\n", header.MinZoom)
fmt.Printf("max zoom: %d\n", header.MaxZoom)
fmt.Printf("center: %f,%f\n", float64(header.CenterLonE7)/10000000, float64(header.CenterLatE7)/10000000)
fmt.Printf("center: (long: %f, lat: %f)\n", float64(header.CenterLonE7)/10000000, float64(header.CenterLatE7)/10000000)
fmt.Printf("center zoom: %d\n", header.CenterZoom)
fmt.Printf("addressed tiles count: %d\n", header.AddressedTilesCount)
fmt.Printf("tile entries count: %d\n", header.TileEntriesCount)
Expand Down

0 comments on commit c402c54

Please sign in to comment.