@mapbox/tilelive-omnivore
v4.3.0
Published
Implements the tilelive API for a variety of raw data formats
Downloads
61
Maintainers
Keywords
Readme
tilelive-omnivore
Implements the tilelive api for a variety of raw data sources
Install
npm install -g @mapbox/tilelive-omnivore
Example
var Omnivore = require('@mapbox/tilelive-omnivore');
var filepath = '/absolute/path/to/geographic/data';
var uri = 'omnivore://' + filepath;
new Omnivore(uri, function(err, source) {
source.getInfo(function(err, info) {
console.log(info);
});
});
Using the command line will output the XML directly to your shell.
mapnik-omnivore <filepath>
Works with
any file supported by mapnik-omnivore