Skip to content

This module will extract pbf files from mbtile by using mbutil.

License

Notifications You must be signed in to change notification settings

watergis/mbtiles2pbf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mbtiles2pbf

GitHub

This module will extract pbf files from mbtile by using Nodejs.

Installation

npm install @watergis/mbtiles2pbf

Execute

const {Mbtiles2Pbf, FileExtension} = require('@watergis/mbtiles2pbf');

const src = __dirname + '/test.mbtiles'
const dist = __dirname + '/tiles'

const mbtile2pbf = new Mbtiles2Pbf(src, dist, FileExtension.MVT);
mbtile2pbf.run()
.then(no_files=>{console.log(no_files)})
.catch(err=>{console.log(err)})

Test

npm test