GitHub PullRequestReviewCommentEvent at 2014-07-02 06:06:22
Repository: harvest_sql_library
Actor: jonescc
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/comments/14441797","id":14441797,"diff_hunk":"@@ -208,6 +208,76 @@ $BODY$\n LANGUAGE plpgsql VOLATILE\n COST 100;\n \n+-- Function to return a set of cells created by dividing a specified region into a a specified cell size \n+-- Refer http://gis.stackexchange.com/questions/16374/how-to-create-a-regular-polygon-grid-in-postgis\n+\n+CREATE OR REPLACE FUNCTION st_createfishnet(IN nrow integer, IN ncol integer, IN xsize double precision, IN ysize double precision, IN x0 double precision DEFAULT 0, IN y0 double precision DEFAULT 0, IN srid integer DEFAULT 4326, OUT \"row\" integer, OUT col integer, OUT cell geometry)\n+  RETURNS SETOF record AS\n+$BODY$\n+  SELECT i + 1 AS row, j + 1 AS col, ST_Translate(geom, j * $3 + $5, i * $4 + $6) AS cell\n+  FROM generate_series(0, $1 - 1) AS i,\n+       generate_series(0, $2 - 1) AS j,\n+       (\n+         SELECT st_setsrid(('POLYGON((0 0, 0 '||$4||', '||$3||' '||$4||', '||$3||' 0,0 0))')::geometry, $7) AS geom\n+       ) AS foo;\n+$BODY$\n+LANGUAGE sql IMMUTABLE STRICT\n+COST 100","path":"extension/imos--1.0.sql","position":18,"original_position":18,"commit_id":"4d6f1f276eda8fd30f16802e4ea6a84497e05380","original_commit_id":"4d6f1f276eda8fd30f16802e4ea6a84497e05380","user":{"login":"jonescc","id":1860215,"avatar_url":"https://avatars.githubusercontent.com/u/1860215?","gravatar_id":"95bb668d12a7f4beb180bae9c9ca6f12","url":"https://api.github.com/users/jonescc","html_url":"https://github.com/jonescc","followers_url":"https://api.github.com/users/jonescc/followers","following_url":"https://api.github.com/users/jonescc/following{/other_user}","gists_url":"https://api.github.com/users/jonescc/gists{/gist_id}","starred_url":"https://api.github.com/users/jonescc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonescc/subscriptions","organizations_url":"https://api.github.com/users/jonescc/orgs","repos_url":"https://api.github.com/users/jonescc/repos","events_url":"https://api.github.com/users/jonescc/events{/privacy}","received_events_url":"https://api.github.com/users/jonescc/received_events","type":"User","site_admin":false},"body":"Actually 100 is the default so I can remove it","created_at":"2014-07-02T06:06:22Z","updated_at":"2014-07-02T06:06:22Z","html_url":"https://github.com/aodn/harvest_sql_library/pull/2#discussion_r14441797","pull_request_url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/comments/14441797"},"html":{"href":"https://github.com/aodn/harvest_sql_library/pull/2#discussion_r14441797"},"pull_request":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2","id":17866879,"html_url":"https://github.com/aodn/harvest_sql_library/pull/2","diff_url":"https://github.com/aodn/harvest_sql_library/pull/2.diff","patch_url":"https://github.com/aodn/harvest_sql_library/pull/2.patch","issue_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues/2","number":2,"state":"open","title":"Add bounding polygon function for use in determining spatial extent","user":{"login":"jonescc","id":1860215,"avatar_url":"https://avatars.githubusercontent.com/u/1860215?","gravatar_id":"95bb668d12a7f4beb180bae9c9ca6f12","url":"https://api.github.com/users/jonescc","html_url":"https://github.com/jonescc","followers_url":"https://api.github.com/users/jonescc/followers","following_url":"https://api.github.com/users/jonescc/following{/other_user}","gists_url":"https://api.github.com/users/jonescc/gists{/gist_id}","starred_url":"https://api.github.com/users/jonescc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonescc/subscriptions","organizations_url":"https://api.github.com/users/jonescc/orgs","repos_url":"https://api.github.com/users/jonescc/repos","events_url":"https://api.github.com/users/jonescc/events{/privacy}","received_events_url":"https://api.github.com/users/jonescc/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-02T03:53:40Z","updated_at":"2014-07-02T06:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5ab2990727427c30af6f2439358981842dd561e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2/commits","review_comments_url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2/comments","review_comment_url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/comments/{number}","comments_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues/2/comments","statuses_url":"https://api.github.com/repos/aodn/harvest_sql_library/statuses/4d6f1f276eda8fd30f16802e4ea6a84497e05380","head":{"label":"aodn:add-bounding-polygon-function","ref":"add-bounding-polygon-function","sha":"4d6f1f276eda8fd30f16802e4ea6a84497e05380","user":{"login":"aodn","id":2802166,"avatar_url":"https://avatars.githubusercontent.com/u/2802166?","gravatar_id":"12505730e34fd65cc3c855cac1bc6159","url":"https://api.github.com/users/aodn","html_url":"https://github.com/aodn","followers_url":"https://api.github.com/users/aodn/followers","following_url":"https://api.github.com/users/aodn/following{/other_user}","gists_url":"https://api.github.com/users/aodn/gists{/gist_id}","starred_url":"https://api.github.com/users/aodn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aodn/subscriptions","organizations_url":"https://api.github.com/users/aodn/orgs","repos_url":"https://api.github.com/users/aodn/repos","events_url":"https://api.github.com/users/aodn/events{/privacy}","received_events_url":"https://api.github.com/users/aodn/received_events","type":"Organization","site_admin":false},"repo":{"id":14289531,"name":"harvest_sql_library","full_name":"aodn/harvest_sql_library","owner":{"login":"aodn","id":2802166,"avatar_url":"https://avatars.githubusercontent.com/u/2802166?","gravatar_id":"12505730e34fd65cc3c855cac1bc6159","url":"https://api.github.com/users/aodn","html_url":"https://github.com/aodn","followers_url":"https://api.github.com/users/aodn/followers","following_url":"https://api.github.com/users/aodn/following{/other_user}","gists_url":"https://api.github.com/users/aodn/gists{/gist_id}","starred_url":"https://api.github.com/users/aodn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aodn/subscriptions","organizations_url":"https://api.github.com/users/aodn/orgs","repos_url":"https://api.github.com/users/aodn/repos","events_url":"https://api.github.com/users/aodn/events{/privacy}","received_events_url":"https://api.github.com/users/aodn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aodn/harvest_sql_library","description":"","fork":false,"url":"https://api.github.com/repos/aodn/harvest_sql_library","forks_url":"https://api.github.com/repos/aodn/harvest_sql_library/forks","keys_url":"https://api.github.com/repos/aodn/harvest_sql_library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aodn/harvest_sql_library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aodn/harvest_sql_library/teams","hooks_url":"https://api.github.com/repos/aodn/harvest_sql_library/hooks","issue_events_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues/events{/number}","events_url":"https://api.github.com/repos/aodn/harvest_sql_library/events","assignees_url":"https://api.github.com/repos/aodn/harvest_sql_library/assignees{/user}","branches_url":"https://api.github.com/repos/aodn/harvest_sql_library/branches{/branch}","tags_url":"https://api.github.com/repos/aodn/harvest_sql_library/tags","blobs_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/refs{/sha}","trees_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aodn/harvest_sql_library/statuses/{sha}","languages_url":"https://api.github.com/repos/aodn/harvest_sql_library/languages","stargazers_url":"https://api.github.com/repos/aodn/harvest_sql_library/stargazers","contributors_url":"https://api.github.com/repos/aodn/harvest_sql_library/contributors","subscribers_url":"https://api.github.com/repos/aodn/harvest_sql_library/subscribers","subscription_url":"https://api.github.com/repos/aodn/harvest_sql_library/subscription","commits_url":"https://api.github.com/repos/aodn/harvest_sql_library/commits{/sha}","git_commits_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/commits{/sha}","comments_url":"https://api.github.com/repos/aodn/harvest_sql_library/comments{/number}","issue_comment_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues/comments/{number}","contents_url":"https://api.github.com/repos/aodn/harvest_sql_library/contents/{+path}","compare_url":"https://api.github.com/repos/aodn/harvest_sql_library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aodn/harvest_sql_library/merges","archive_url":"https://api.github.com/repos/aodn/harvest_sql_library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aodn/harvest_sql_library/downloads","issues_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues{/number}","pulls_url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls{/number}","milestones_url":"https://api.github.com/repos/aodn/harvest_sql_library/milestones{/number}","notifications_url":"https://api.github.com/repos/aodn/harvest_sql_library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aodn/harvest_sql_library/labels{/name}","releases_url":"https://api.github.com/repos/aodn/harvest_sql_library/releases{/id}","created_at":"2013-11-11T02:22:13Z","updated_at":"2014-04-23T00:12:56Z","pushed_at":"2014-07-02T03:53:25Z","git_url":"git://github.com/aodn/harvest_sql_library.git","ssh_url":"git@github.com:aodn/harvest_sql_library.git","clone_url":"https://github.com/aodn/harvest_sql_library.git","svn_url":"https://github.com/aodn/harvest_sql_library","homepage":null,"size":203,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"aodn:master","ref":"master","sha":"86bf3ccedee66d6e2d6e5697ceeba11f0278aae4","user":{"login":"aodn","id":2802166,"avatar_url":"https://avatars.githubusercontent.com/u/2802166?","gravatar_id":"12505730e34fd65cc3c855cac1bc6159","url":"https://api.github.com/users/aodn","html_url":"https://github.com/aodn","followers_url":"https://api.github.com/users/aodn/followers","following_url":"https://api.github.com/users/aodn/following{/other_user}","gists_url":"https://api.github.com/users/aodn/gists{/gist_id}","starred_url":"https://api.github.com/users/aodn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aodn/subscriptions","organizations_url":"https://api.github.com/users/aodn/orgs","repos_url":"https://api.github.com/users/aodn/repos","events_url":"https://api.github.com/users/aodn/events{/privacy}","received_events_url":"https://api.github.com/users/aodn/received_events","type":"Organization","site_admin":false},"repo":{"id":14289531,"name":"harvest_sql_library","full_name":"aodn/harvest_sql_library","owner":{"login":"aodn","id":2802166,"avatar_url":"https://avatars.githubusercontent.com/u/2802166?","gravatar_id":"12505730e34fd65cc3c855cac1bc6159","url":"https://api.github.com/users/aodn","html_url":"https://github.com/aodn","followers_url":"https://api.github.com/users/aodn/followers","following_url":"https://api.github.com/users/aodn/following{/other_user}","gists_url":"https://api.github.com/users/aodn/gists{/gist_id}","starred_url":"https://api.github.com/users/aodn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aodn/subscriptions","organizations_url":"https://api.github.com/users/aodn/orgs","repos_url":"https://api.github.com/users/aodn/repos","events_url":"https://api.github.com/users/aodn/events{/privacy}","received_events_url":"https://api.github.com/users/aodn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aodn/harvest_sql_library","description":"","fork":false,"url":"https://api.github.com/repos/aodn/harvest_sql_library","forks_url":"https://api.github.com/repos/aodn/harvest_sql_library/forks","keys_url":"https://api.github.com/repos/aodn/harvest_sql_library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aodn/harvest_sql_library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aodn/harvest_sql_library/teams","hooks_url":"https://api.github.com/repos/aodn/harvest_sql_library/hooks","issue_events_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues/events{/number}","events_url":"https://api.github.com/repos/aodn/harvest_sql_library/events","assignees_url":"https://api.github.com/repos/aodn/harvest_sql_library/assignees{/user}","branches_url":"https://api.github.com/repos/aodn/harvest_sql_library/branches{/branch}","tags_url":"https://api.github.com/repos/aodn/harvest_sql_library/tags","blobs_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/refs{/sha}","trees_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aodn/harvest_sql_library/statuses/{sha}","languages_url":"https://api.github.com/repos/aodn/harvest_sql_library/languages","stargazers_url":"https://api.github.com/repos/aodn/harvest_sql_library/stargazers","contributors_url":"https://api.github.com/repos/aodn/harvest_sql_library/contributors","subscribers_url":"https://api.github.com/repos/aodn/harvest_sql_library/subscribers","subscription_url":"https://api.github.com/repos/aodn/harvest_sql_library/subscription","commits_url":"https://api.github.com/repos/aodn/harvest_sql_library/commits{/sha}","git_commits_url":"https://api.github.com/repos/aodn/harvest_sql_library/git/commits{/sha}","comments_url":"https://api.github.com/repos/aodn/harvest_sql_library/comments{/number}","issue_comment_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues/comments/{number}","contents_url":"https://api.github.com/repos/aodn/harvest_sql_library/contents/{+path}","compare_url":"https://api.github.com/repos/aodn/harvest_sql_library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aodn/harvest_sql_library/merges","archive_url":"https://api.github.com/repos/aodn/harvest_sql_library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aodn/harvest_sql_library/downloads","issues_url":"https://api.github.com/repos/aodn/harvest_sql_library/issues{/number}","pulls_url":"https://api.github.com/repos/aodn/harvest_sql_library/pulls{/number}","milestones_url":"https://api.github.com/repos/aodn/harvest_sql_library/milestones{/number}","notifications_url":"https://api.github.com/repos/aodn/harvest_sql_library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aodn/harvest_sql_library/labels{/name}","releases_url":"https://api.github.com/repos/aodn/harvest_sql_library/releases{/id}","created_at":"2013-11-11T02:22:13Z","updated_at":"2014-04-23T00:12:56Z","pushed_at":"2014-07-02T03:53:25Z","git_url":"git://github.com/aodn/harvest_sql_library.git","ssh_url":"git@github.com:aodn/harvest_sql_library.git","clone_url":"https://github.com/aodn/harvest_sql_library.git","svn_url":"https://github.com/aodn/harvest_sql_library","homepage":null,"size":203,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2"},"html":{"href":"https://github.com/aodn/harvest_sql_library/pull/2"},"issue":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/issues/2"},"comments":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/aodn/harvest_sql_library/statuses/4d6f1f276eda8fd30f16802e4ea6a84497e05380"}}}}