Append OSM documents to an osm-p2p-db.
Reads OSM documents as newline-delimited JSON on standard in and writes them to the given osm-p2p-db.
Can be used in conjunction with osm-p2p-insert to merge two osm-p2p-db databases together.
USAGE: osm-p2p-append <OSM-P2P-DB-DIR>
To perform a merge between two
osm-p2p-dbs, combine with
$ osm-p2p-diff osm1/log osm2/log > diff $ osm-p2p-append osm1 < diff
var append =
var writeable = append(osm)
osm. Returns a Writeable stream that
newline-delimited JSON can be written to, containing OSM documents.
N.B. Certain metadata fields are expected. See the output of
and look for fields that begin with an underscore (
With npm installed, run
$ npm install -g osm-p2p-append