{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/tilelive-omnivore/issues/26","repository_url":"https://api.github.com/repos/mapbox/tilelive-omnivore","labels_url":"https://api.github.com/repos/mapbox/tilelive-omnivore/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/tilelive-omnivore/issues/26/comments","events_url":"https://api.github.com/repos/mapbox/tilelive-omnivore/issues/26/events","html_url":"https://github.com/mapbox/tilelive-omnivore/issues/26","id":138340755,"number":26,"title":"Create single tileset for multiple files","user":{"login":"GretaCB","id":1209162,"avatar_url":"https://avatars.githubusercontent.com/u/1209162?v=3","gravatar_id":"","url":"https://api.github.com/users/GretaCB","html_url":"https://github.com/GretaCB","followers_url":"https://api.github.com/users/GretaCB/followers","following_url":"https://api.github.com/users/GretaCB/following{/other_user}","gists_url":"https://api.github.com/users/GretaCB/gists{/gist_id}","starred_url":"https://api.github.com/users/GretaCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GretaCB/subscriptions","organizations_url":"https://api.github.com/users/GretaCB/orgs","repos_url":"https://api.github.com/users/GretaCB/repos","events_url":"https://api.github.com/users/GretaCB/events{/privacy}","received_events_url":"https://api.github.com/users/GretaCB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-04T00:41:24Z","updated_at":"2016-03-04T00:47:51Z","closed_at":null,"body":"Allow tilelive-omnivore to create a single tileset for not only bundled and converted geojson layers, [but also multiple files in general](https://github.com/mapbox/studio/issues/4683). 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.\r\n\r\nTilelive-omnivore will need to: \r\n- [allow an array of files as `uri` param](https://github.com/mapbox/tilelive-omnivore/blob/ba4cb6ed241c159d07024b779dc9ecacfa42c77b/index.js#L12).\r\n- [call `mapnik-omnivore`](https://github.com/mapbox/tilelive-omnivore/blob/ba4cb6ed241c159d07024b779dc9ecacfa42c77b/index.js#L17) against each file, and somehow [translate each metadata object as a separate layer](https://github.com/mapbox/tilelive-omnivore/blob/e613f96a75f688c27251e8135aadea0599924ad8/index.js#L47-L58)\r\n- create a separate [Mapnik XML <Layer>](https://github.com/mapbox/tilelive-omnivore/blob/ba4cb6ed241c159d07024b779dc9ecacfa42c77b/template.xml#L12) for each file\r\n \r\n\r\ncc @BergWerkGIS @rclark \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/tilelive-omnivore/issues/comments/192038663","html_url":"https://github.com/mapbox/tilelive-omnivore/issues/26#issuecomment-192038663","issue_url":"https://api.github.com/repos/mapbox/tilelive-omnivore/issues/26","id":192038663,"user":{"login":"rclark","id":515424,"avatar_url":"https://avatars.githubusercontent.com/u/515424?v=3","gravatar_id":"","url":"https://api.github.com/users/rclark","html_url":"https://github.com/rclark","followers_url":"https://api.github.com/users/rclark/followers","following_url":"https://api.github.com/users/rclark/following{/other_user}","gists_url":"https://api.github.com/users/rclark/gists{/gist_id}","starred_url":"https://api.github.com/users/rclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclark/subscriptions","organizations_url":"https://api.github.com/users/rclark/orgs","repos_url":"https://api.github.com/users/rclark/repos","events_url":"https://api.github.com/users/rclark/events{/privacy}","received_events_url":"https://api.github.com/users/rclark/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T00:47:51Z","updated_at":"2016-03-04T00:47:51Z","body":"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:\r\n\r\n```\r\n- layerA.geojson\r\n- layerB.geojson\r\n- layerC.kml (!!!)\r\n  - kml-layerA\r\n  - kml-layerB\r\n```\r\n\r\nThis would mean we reject file arrays that don't consist entirely of TIF, geojson, and CSV files.\r\n\r\n> allow an array of files as uri param.\r\n\r\nLet's try to keep the URI as a string: \r\n\r\n```\r\nomnivore:///path/to/layerA.geojson,/path/to/layerB.geojson\r\n```"}}