mapbox / tilelive-omnivore

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

Create single tileset for multiple files #26

Open GretaCB opened 8 years ago

GretaCB commented 8 years ago

Allow tilelive-omnivore to create a single tileset for not only bundled and converted geojson layers, but also multiple files in general. Will require some experimenting here, and some changes from within mapbox-tile-copy as well (mapbox-tile-copy will be passing in the new array of files). But separating into its own bubble here to help modularize the thought process.

Tilelive-omnivore will need to:

cc @BergWerkGIS @rclark

rclark commented 8 years ago

It'll probably also need to file-sniff each file included in the uri. I don't think we want to get into a situation where there are layers within layers:

- layerA.geojson
- layerB.geojson
- layerC.kml (!!!)
  - kml-layerA
  - kml-layerB

This would mean we reject file arrays that don't consist entirely of TIF, geojson, and CSV files.

allow an array of files as uri param.

Let's try to keep the URI as a string:

omnivore:///path/to/layerA.geojson,/path/to/layerB.geojson
wilhelmberg commented 8 years ago

working on it https://github.com/mapbox/tilelive-omnivore/tree/multiple-input-files