osm-pbf-to-mddf
convert open street map protocol buffers to mddf
example
#!/usr/bin/env nodevar fs = ;var fd = fs;var stat = fs;var mddf = ;var df =;var osmddf = df;fs;
methods
var osmddf =
var w = osmddf(df, opts)
Create a writable stream w
that will write an incoming open street map
protobuf file to the mddf index df
.
Set opts.fatal
to false
to emit error events like usual but continue
processing.
usage
usage: osm-pbf-to-mddf OPTIONS
OPTIONS are:
-i INFILE Read from INFILE, an open street map pbf file.
-o OUTFILE Write to OUTFILE, an mddf index.
-b BLKSIZE Block size to use for mddf index. Default: 4096.
--no-fatal Print errors to stderr but continue processing.
install
To get the library, do:
npm install osm-pbf-to-mddf
To get the command-line program, do:
npm install -g osm-pbf-to-mddf
license
MIT