{"action":"created","comment":{"url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/comments/45187409","id":45187409,"diff_hunk":"@@ -29,6 +31,12 @@ function extract(mbTilesPath, geojson, propName) {\n         var writeQueue = {};\n         var writable = {};\n \n+        db.getInfo(function (err, info) {\n+            if (err) throw err;\n+\n+            meta = info;\n+        });","path":"index.js","position":null,"original_position":24,"commit_id":"f5ab03d07eafa9904b206a715d995f77d9d86eb9","original_commit_id":"5cc206ffbe70b48339bb28d6d7a4d1098a66371b","user":{"login":"geohacker","id":371666,"avatar_url":"https://avatars.githubusercontent.com/u/371666?v=3","gravatar_id":"","url":"https://api.github.com/users/geohacker","html_url":"https://github.com/geohacker","followers_url":"https://api.github.com/users/geohacker/followers","following_url":"https://api.github.com/users/geohacker/following{/other_user}","gists_url":"https://api.github.com/users/geohacker/gists{/gist_id}","starred_url":"https://api.github.com/users/geohacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geohacker/subscriptions","organizations_url":"https://api.github.com/users/geohacker/orgs","repos_url":"https://api.github.com/users/geohacker/repos","events_url":"https://api.github.com/users/geohacker/events{/privacy}","received_events_url":"https://api.github.com/users/geohacker/received_events","type":"User","site_admin":false},"body":"Fixed! https://github.com/mapbox/mbtiles-extracts/commit/f5ab03d07eafa9904b206a715d995f77d9d86eb9","created_at":"2015-11-18T11:18:20Z","updated_at":"2015-11-18T11:18:20Z","html_url":"https://github.com/mapbox/mbtiles-extracts/pull/3#discussion_r45187409","pull_request_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/comments/45187409"},"html":{"href":"https://github.com/mapbox/mbtiles-extracts/pull/3#discussion_r45187409"},"pull_request":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3","id":51044310,"html_url":"https://github.com/mapbox/mbtiles-extracts/pull/3","diff_url":"https://github.com/mapbox/mbtiles-extracts/pull/3.diff","patch_url":"https://github.com/mapbox/mbtiles-extracts/pull/3.patch","issue_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/3","number":3,"state":"open","locked":false,"title":"Set bounds, center and metadata.","user":{"login":"geohacker","id":371666,"avatar_url":"https://avatars.githubusercontent.com/u/371666?v=3","gravatar_id":"","url":"https://api.github.com/users/geohacker","html_url":"https://github.com/geohacker","followers_url":"https://api.github.com/users/geohacker/followers","following_url":"https://api.github.com/users/geohacker/following{/other_user}","gists_url":"https://api.github.com/users/geohacker/gists{/gist_id}","starred_url":"https://api.github.com/users/geohacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geohacker/subscriptions","organizations_url":"https://api.github.com/users/geohacker/orgs","repos_url":"https://api.github.com/users/geohacker/repos","events_url":"https://api.github.com/users/geohacker/events{/privacy}","received_events_url":"https://api.github.com/users/geohacker/received_events","type":"User","site_admin":false},"body":"This works! 8 minutes on z12. Clearing `fields` fixes issues with mapbox-upload. \r\nWhen this gets to master, I'm going to punt on tilelive.copy approach, swing back to making this part of qa-tiles worker.\r\n\r\ncc @mourner @rclark @batpad ","created_at":"2015-11-18T05:30:29Z","updated_at":"2015-11-18T11:18:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57e425aafed38df6319af8a12fba251c59955966","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3/commits","review_comments_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3/comments","review_comment_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/3/comments","statuses_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/statuses/f5ab03d07eafa9904b206a715d995f77d9d86eb9","head":{"label":"mapbox:metadata","ref":"metadata","sha":"f5ab03d07eafa9904b206a715d995f77d9d86eb9","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":45920822,"name":"mbtiles-extracts","full_name":"mapbox/mbtiles-extracts","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/mbtiles-extracts","description":"Extract parts of MBTiles into separate files using a GeoJSON with polygons.","fork":false,"url":"https://api.github.com/repos/mapbox/mbtiles-extracts","forks_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/forks","keys_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/teams","hooks_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/events","assignees_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/tags","blobs_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/languages","stargazers_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/subscription","commits_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/merges","archive_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/downloads","issues_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/releases{/id}","created_at":"2015-11-10T15:26:14Z","updated_at":"2015-11-18T10:29:21Z","pushed_at":"2015-11-18T11:17:18Z","git_url":"git://github.com/mapbox/mbtiles-extracts.git","ssh_url":"git@github.com:mapbox/mbtiles-extracts.git","clone_url":"https://github.com/mapbox/mbtiles-extracts.git","svn_url":"https://github.com/mapbox/mbtiles-extracts","homepage":null,"size":13,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"00305ecc91f40a51e9977d909840a0e54cfab5c9","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":45920822,"name":"mbtiles-extracts","full_name":"mapbox/mbtiles-extracts","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/mbtiles-extracts","description":"Extract parts of MBTiles into separate files using a GeoJSON with polygons.","fork":false,"url":"https://api.github.com/repos/mapbox/mbtiles-extracts","forks_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/forks","keys_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/teams","hooks_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/events","assignees_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/tags","blobs_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/languages","stargazers_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/subscription","commits_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/merges","archive_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/downloads","issues_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mbtiles-extracts/releases{/id}","created_at":"2015-11-10T15:26:14Z","updated_at":"2015-11-18T10:29:21Z","pushed_at":"2015-11-18T11:17:18Z","git_url":"git://github.com/mapbox/mbtiles-extracts.git","ssh_url":"git@github.com:mapbox/mbtiles-extracts.git","clone_url":"https://github.com/mapbox/mbtiles-extracts.git","svn_url":"https://github.com/mapbox/mbtiles-extracts","homepage":null,"size":13,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3"},"html":{"href":"https://github.com/mapbox/mbtiles-extracts/pull/3"},"issue":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/3"},"comments":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/mbtiles-extracts/statuses/f5ab03d07eafa9904b206a715d995f77d9d86eb9"}}}}