Skip to content

About

Software to generate images showing OSM tile usage

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OpenStreetMap Tile Access Images

This software generates heatmaps showing accesses of OpenStreetMap tiles.

Usage

AWS_PROFILE=osm-service-logs osmtileimage

This will generate a 4096x4096 px image showing raster tile requests for the most recent hour that data is available for and save it as tiles-YYYY-MM-DD-HH.png

Options

--layer

Default: raster

Define the layer to query logs for. Valid values: raster, vector

--start

Default: The most recent hour which has aggregated logs

Timestamp to start image generation at, inclusive. Truncated down to a 1 hour resolution.

Only periods that have been aggregated by ofastlylog can have images generated

--end

Default: The most recent hour which has aggregated logs

Timestamp to end image generation at, inclusive. Truncated down to a 1 hour resolution.

Only periods that have been aggregated by ofastlylog can have images generated

--max

Max value for the color scale. By default the max value is the maximum value found in the data but when comparing images from different times you want a fixed maximum.

--prefix

Default: tiles-

Prefix for the image name. May contain / for directories.

--zoom

Default: 12 osmtileimage will restrict the query to this zoom and higher and convert all tile views to views at this zoom.

The image will be 2zoom pixels in both directions.

Improving image size

If sending images to other it can help to run them through oxipng. This cuts the size down to about a third of before. A good set of options is

oxipng --zc 12 -f 0,9 --fast -p -a tiles-*.png

About

Software to generate images showing OSM tile usage

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages