package
2.0.0-20240626200215-dc8a76ed2d00
Repository: https://github.com/brawer/osmviews.git
Documentation: pkg.go.dev

# README

Builder

The builder tool is a cronjob that computes osmviews.tiff and osmviews-stats.json from OpenStreetMap tile log impressions.

Release instructions

We should set up a fully automatic release process, but are blocked on Wikimedia T194332. Currently, a GitHub action automatically builds and tests a release candidate whenever a git tag gets pushed to the repository. However, to become live, the binary still needs to be deployed to production. Note that this will update both the backend pipeline and the web server.

$ ssh bastion.toolforge.org
$ become osmviews
$ python3 prod/deploy_release.py latest  # either 'latest' or tag like '0.0.2'

# Functions

No description provided by the author
No description provided by the author
Return a list of weeks for which OpenStreetMap has tile logs.
GetTileLogs returns an io.Reader for the sorted log records of a week.
MakeTileKey returns a TileKey given the zoom/x/y tile coordinates.
No description provided by the author
No description provided by the author
No description provided by the author
NewStorage sets up a client for accessing S3-compatible object storage.
No description provided by the author
No description provided by the author
No description provided by the author
ParseWeek gives the year and week for an ISO week string like "2018-W34".
TileArea returns the area of a web mercator tile in km².
TileCountFromBytes de-serializes a TileCount from a byte array.
TileCountLess returns true if TileCount a should be sorted before b.
TileFromLatLng returns tile coordinates for WGS84 latitude and longitude.
TileLatitude returns the latitude of a web mercator tile’s northern edge, in radians.

# Constants

zoom 0, sorts after all valid tiles.
WorldTile is the tile for the entire planet, to the extent it is visible in the Web Mercator projection.

# Variables

Name of the producing software to embed in output TIFF files.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SharedTile keeps information about a tile is used more than once.
No description provided by the author
No description provided by the author
TileCount counts the number of impressions for a tile.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
TileKey encodes a zoom/x/y tile into an uin64.