Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Tile-reduce based metadata counter / aggregator for location-based analysis of OSM tags.

Notifications You must be signed in to change notification settings

jenningsanderson/metadata-aggregator

Repository files navigation

Metadata Aggregator

Using osm-qa-tiles and tile-reduce, this is a basic aggregation of OSM metadata (such as object tags)

It's like taginfo.openstreetmap.org, but matches on any key/value and shows where / when (to the best of it's ability)

What Is Counted?

Because this uses osm-qa-tiles, an object is counted if the latest (most-recent) edit to a currently visible object contains the username of someone on the following lists. What is then not represented:

  • Edits to any previous version of an object
  • Deletions
  • Edits to nodes w/o tags (i.e. moving a node in a way and not editing the way itself)
  • Turn restrictions & relations with abstract geometry representations

To this end, this visualization is not an exact record of all editing activity, but a decent approximation of relative editing activity.

Running

npm install
node index.js

This creates the following output files:

  • tileSummaries.geojsonseq: Each GeoJSON object that matched a term

Downscaling

The Low-Zoom-Aggregation.ipynb notebook reads in all of the tile summaries in tileSummaries.geojsonseq and creates lower zoom aggregations to fit all the data into vector tiles.

Analysis

The Jupyter notebook, Analysis.ipynb reads in summary-totals.csv for plotting / analysis and creating the timelines required for the interactive map.

Making the Map

The docs folder contains everything for the interactive heatmap. This is built on d3 and Mapbox-GL.

Running the script run-tippecanoe.sh will create an mbtiles file for visualizing the data.

About

Tile-reduce based metadata counter / aggregator for location-based analysis of OSM tags.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published