Update binaries.
This commit is contained in:
19
README.md
19
README.md
@@ -8,6 +8,25 @@ Utilities and [tilelive][1] integration for the [MBTiles][2] format.
|
|||||||
npm install mbtiles
|
npm install mbtiles
|
||||||
|
|
||||||
|
|
||||||
|
### Commandline tools
|
||||||
|
|
||||||
|
Several commandline tools are included in `bin` for manipulating existing
|
||||||
|
MBTiles files.
|
||||||
|
|
||||||
|
mbcheck [FILE]
|
||||||
|
Check an mbtiles for missing metadata and tiles.
|
||||||
|
|
||||||
|
mbcompact [FILE]
|
||||||
|
Eliminate duplicate images to reduce mbtiles filesize.
|
||||||
|
|
||||||
|
mbpipe [COMMAND] [FILE]
|
||||||
|
Pipe each tile to stdin of the specified command and
|
||||||
|
write stdout into the mbtiles file.
|
||||||
|
|
||||||
|
mbrekey [FILE]
|
||||||
|
Rekey a compacted mbtiles to save space.
|
||||||
|
|
||||||
|
|
||||||
### tilelive.js integration
|
### tilelive.js integration
|
||||||
|
|
||||||
Example of using `tilelive` to serve tiles from an `mbtiles` file.
|
Example of using `tilelive` to serve tiles from an `mbtiles` file.
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ var options = argv = require('optimist').argv,
|
|||||||
|
|
||||||
// Show help.
|
// Show help.
|
||||||
if (argv.help || argv._.length === 0) {
|
if (argv.help || argv._.length === 0) {
|
||||||
console.warn('Usage: mbcheck [OPTIONS] [FILE]');
|
console.warn('Usage: mbcheck [FILE]');
|
||||||
utils.table([
|
console.warn(' Check an mbtiles for missing metadata and tiles.');
|
||||||
['--help', 'Show help.']
|
console.warn('Examples:');
|
||||||
]);
|
console.warn(' mbcheck world.mbtiles');
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,10 @@ var options = argv = require('optimist').argv,
|
|||||||
|
|
||||||
// Show help.
|
// Show help.
|
||||||
if (argv.help || argv._.length < 1) {
|
if (argv.help || argv._.length < 1) {
|
||||||
console.log('Usage: mbcompact [FILE]');
|
console.warn('Usage: mbcompact [FILE]');
|
||||||
utils.table([['--help', 'Show help.']]);
|
console.warn(' Eliminate duplicate images to reduce mbtiles filesize.');
|
||||||
|
console.warn('Examples:');
|
||||||
|
console.warn(' mbcompact world.mbtiles');
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,9 +17,10 @@ var options = argv = require('optimist').argv,
|
|||||||
// Show help.
|
// Show help.
|
||||||
if (argv.help || argv._.length < 2) {
|
if (argv.help || argv._.length < 2) {
|
||||||
console.warn('Usage: mbpipe [COMMAND] [FILE]');
|
console.warn('Usage: mbpipe [COMMAND] [FILE]');
|
||||||
utils.table([
|
console.warn(' Pipe each tile to stdin of the specified command and');
|
||||||
['--help', 'Show help.']
|
console.warn(' write stdout into the mbtiles file.');
|
||||||
]);
|
console.warn('Examples:');
|
||||||
|
console.warn(' mbpipe "pngquant 32" world.mbtiles');
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,10 @@ var utils = require('..').utils;
|
|||||||
|
|
||||||
// Show help.
|
// Show help.
|
||||||
if (argv.help || argv._.length < 1) {
|
if (argv.help || argv._.length < 1) {
|
||||||
console.log('Usage: mbrekey [FILE]');
|
console.warn('Usage: mbrekey [FILE]');
|
||||||
utils.table([['--help', 'Show help.']]);
|
console.warn(' Rekey a compacted mbtiles to save space.');
|
||||||
|
console.warn('Examples:');
|
||||||
|
console.warn(' mbrekey world.mbtiles');
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
"keywords": ["map", "mbtiles"],
|
"keywords": ["map", "mbtiles"],
|
||||||
"licenses": [{ "type": "BSD" }],
|
"licenses": [{ "type": "BSD" }],
|
||||||
"main": "./index",
|
"main": "./index",
|
||||||
|
"bin": {
|
||||||
|
"mbcheck": "./bin/mbcheck",
|
||||||
|
"mbcompact": "./bin/mbcompact",
|
||||||
|
"mbpipe": "./bin/mbpipe",
|
||||||
|
"mbrekey": "./bin/mbrekey"
|
||||||
|
},
|
||||||
"repositories": [{
|
"repositories": [{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "http://github.com/mapbox/node-mbtiles.git"
|
"url": "http://github.com/mapbox/node-mbtiles.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user