mapbox / tilelive-omnivore

Implements the tilelive api for a variety of data sources
ISC License
8 stars 11 forks source link

Support multiple input files #27

Closed GretaCB closed 8 years ago

GretaCB commented 8 years ago

Per https://github.com/mapbox/tilelive-omnivore/issues/26

cc @BergWerkGIS @rclark

GretaCB commented 8 years ago

Tested locally and XML results look :+1: ! Also did a quick test through tilelive-bridge

Thinking updating the Readme is a great next step (for example: bin/mapnik-omnivore usage log and usage example for new Omnivore(uri...) )


Just noting for myself for later when I forget :smile: :

var uri = 'omnivore:///Users/data/geojson/DC_polygon.geo.json,/Users/data/geojson/places.geo.json'

new Omnivore(uri, function(err....)};
[ { filename: 'DC_polygon.geo',
   ...
    json: { vector_layers: [Object] },
    layers: [ 'DC_polygon.geo' ],
    filepath: '/Users/data/geojson/DC_polygon.geo.json' },
  { filename: 'places.geo',
    ...
    json: { vector_layers: [Object] },
    layers: [ 'places.geo' ],
    filepath: '/Users/data/geojson/places.geo.json' } ]
coveralls commented 8 years ago

Coverage Status

Coverage increased (+4.6%) to 97.101% when pulling abc58f550cb6fb15cecdc42b18239c66b3f25c1e on multiple-input-files into ba1d60fdaf01713888877c44b9a1ec2911ec49e1 on master.