Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/watergis/mbtiles2pbf
This module will extract pbf files from mbtile by using mbutil.
https://github.com/watergis/mbtiles2pbf
mbtiles mbutil pbf vectortiles
Last synced: 14 days ago
JSON representation
This module will extract pbf files from mbtile by using mbutil.
- Host: GitHub
- URL: https://github.com/watergis/mbtiles2pbf
- Owner: watergis
- License: mit
- Created: 2020-07-17T11:42:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T14:55:22.000Z (over 1 year ago)
- Last Synced: 2024-10-30T05:43:07.185Z (21 days ago)
- Topics: mbtiles, mbutil, pbf, vectortiles
- Language: TypeScript
- Homepage:
- Size: 111 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# mbtiles2pbf
![](https://github.com/watergis/mbtiles2pbf/workflows/Node.js%20Package/badge.svg)
![GitHub](https://img.shields.io/github/license/watergis/mbtiles2pbf)This module will extract pbf files from mbtile by using Nodejs.
## Installation
```
npm install @watergis/mbtiles2pbf
```## Execute
```js
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
```