Skip to content

Reads metadata from a directory structure containing .mbtiles and spatialite.

License

Notifications You must be signed in to change notification settings

Artsdatabanken/dump-mbtiles-metadata

Repository files navigation

Dump .mbtiles metadata

Reads the metadata table from all .mbtiles inside a directory. Outputs the metadata to console in JSON format.

Installation

Package is hosted at https://www.npmjs.com/package/@artsdatabanken/dump-mbtiles-metadata

 npm install -g @artsdatabanken/dump-mbtiles-metadata

Usage

 dump-mbtiles-metadata <source .mbtiles directory>

The metadata will be written to standard out.

Sample

> dump-mbtiles-metadata .
{
  "AO": {
    "name": "/data/AO.mbtiles",
    "description": "/data/AO.mbtiles",
    "version": "2",
    "minzoom": "0",
    "maxzoom": "11",
    "center": "10.810547,59.578822,11",
    "bounds": "4.087527,57.759005,31.761389,71.384877",
    "type": "overlay",
    "format": "pbf",
    "json": "{...}"
  },
  "NA": {
    "...": "..."
  }

About

Reads metadata from a directory structure containing .mbtiles and spatialite.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published