A tile-reduce-based script for comparing road networks across vector tilesets (e.g. OSM and MGCP).
Takes two vector tilesets in mbtiles format as input, in this case mgcp.mbtiles and osm.mbtiles. Output is geojson of road segments present in one source but not the other within a certain buffer threshold.
To run:
npm install && npm link
node index.js
will display geojson output in the terminalnode index.js > output.geojson
will pipe output to a geojson fileGeojson may then be turned into vector tiles with tools like tippecanoe.
The output files in this repo (osm-not-mgcp.geojson and mgcp-not-osm.geojson) are provided as sample for viewing in a map client. Alternatively, convert to vector tiles with tippecanoe and view locally with mbview.