{"action":"created","comment":{"url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/comments/173867612","pull_request_review_id":103127354,"id":173867612,"diff_hunk":"@@ -205,11 +209,15 @@ def get_horizontal_slice(extent, geomcol, zoom):\n \n         if sliced_poly:\n             if sliced_poly.GetGeometryName() == 'POLYGON':\n-                slice_collection.AddGeometry(sliced_poly)\n+                slice_infos['tile_y_top'].append(TileY)\n+                slice_infos['tile_y_bottom'].append(TileY+3)\n+                slice_infos['slice_collection'].AddGeometry(sliced_poly)\n                 #logging.info('sliced poly: %s' % sliced_poly)\n             elif sliced_poly.GetGeometryName() == 'MULTIPOLYGON':\n                 for geom_part in sliced_poly:\n-                    slice_collection.AddGeometry(geom_part)\n+                    slice_infos['tile_y_top'].append(TileY)\n+                    slice_infos['tile_y_bottom'].append(TileY + 3)\n+                    slice_infos['slice_collection'].AddGeometry(geom_part)\n                     #logging.info('sliced poly: %s' % sliced_poly)","path":"import_module/create_groups.py","position":37,"original_position":37,"commit_id":"0853cee5b65f8707b124e559f4ecb7ae35cac139","original_commit_id":"0853cee5b65f8707b124e559f4ecb7ae35cac139","user":{"login":"Hagellach37","id":7045979,"avatar_url":"https://avatars2.githubusercontent.com/u/7045979?v=4","gravatar_id":"","url":"https://api.github.com/users/Hagellach37","html_url":"https://github.com/Hagellach37","followers_url":"https://api.github.com/users/Hagellach37/followers","following_url":"https://api.github.com/users/Hagellach37/following{/other_user}","gists_url":"https://api.github.com/users/Hagellach37/gists{/gist_id}","starred_url":"https://api.github.com/users/Hagellach37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hagellach37/subscriptions","organizations_url":"https://api.github.com/users/Hagellach37/orgs","repos_url":"https://api.github.com/users/Hagellach37/repos","events_url":"https://api.github.com/users/Hagellach37/events{/privacy}","received_events_url":"https://api.github.com/users/Hagellach37/received_events","type":"User","site_admin":false},"body":"good question. I think, I never used this info in the last times. so maybe I will just remove it.","created_at":"2018-03-12T16:49:20Z","updated_at":"2018-03-12T16:49:20Z","html_url":"https://github.com/mapswipe/python-mapswipe-workers/pull/12#discussion_r173867612","pull_request_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/comments/173867612"},"html":{"href":"https://github.com/mapswipe/python-mapswipe-workers/pull/12#discussion_r173867612"},"pull_request":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12"}},"in_reply_to_id":173863895},"pull_request":{"url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12","id":174335791,"html_url":"https://github.com/mapswipe/python-mapswipe-workers/pull/12","diff_url":"https://github.com/mapswipe/python-mapswipe-workers/pull/12.diff","patch_url":"https://github.com/mapswipe/python-mapswipe-workers/pull/12.patch","issue_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/12","number":12,"state":"open","locked":false,"title":"fix zero division error, add check and also fix multipolygon issue #11","user":{"login":"Hagellach37","id":7045979,"avatar_url":"https://avatars2.githubusercontent.com/u/7045979?v=4","gravatar_id":"","url":"https://api.github.com/users/Hagellach37","html_url":"https://github.com/Hagellach37","followers_url":"https://api.github.com/users/Hagellach37/followers","following_url":"https://api.github.com/users/Hagellach37/following{/other_user}","gists_url":"https://api.github.com/users/Hagellach37/gists{/gist_id}","starred_url":"https://api.github.com/users/Hagellach37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hagellach37/subscriptions","organizations_url":"https://api.github.com/users/Hagellach37/orgs","repos_url":"https://api.github.com/users/Hagellach37/repos","events_url":"https://api.github.com/users/Hagellach37/events{/privacy}","received_events_url":"https://api.github.com/users/Hagellach37/received_events","type":"User","site_admin":false},"body":"I looked at the groups creation and added few lines to avoid zero division errors.","created_at":"2018-03-12T11:09:48Z","updated_at":"2018-03-12T16:49:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5253f2ad95f7b59da0da265751728b24143adf46","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12/commits","review_comments_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12/comments","review_comment_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/12/comments","statuses_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/statuses/0853cee5b65f8707b124e559f4ecb7ae35cac139","head":{"label":"mapswipe:fix_zero_division_error_in_create_groups","ref":"fix_zero_division_error_in_create_groups","sha":"0853cee5b65f8707b124e559f4ecb7ae35cac139","user":{"login":"mapswipe","id":16786834,"avatar_url":"https://avatars3.githubusercontent.com/u/16786834?v=4","gravatar_id":"","url":"https://api.github.com/users/mapswipe","html_url":"https://github.com/mapswipe","followers_url":"https://api.github.com/users/mapswipe/followers","following_url":"https://api.github.com/users/mapswipe/following{/other_user}","gists_url":"https://api.github.com/users/mapswipe/gists{/gist_id}","starred_url":"https://api.github.com/users/mapswipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapswipe/subscriptions","organizations_url":"https://api.github.com/users/mapswipe/orgs","repos_url":"https://api.github.com/users/mapswipe/repos","events_url":"https://api.github.com/users/mapswipe/events{/privacy}","received_events_url":"https://api.github.com/users/mapswipe/received_events","type":"Organization","site_admin":false},"repo":{"id":121123042,"name":"python-mapswipe-workers","full_name":"mapswipe/python-mapswipe-workers","owner":{"login":"mapswipe","id":16786834,"avatar_url":"https://avatars3.githubusercontent.com/u/16786834?v=4","gravatar_id":"","url":"https://api.github.com/users/mapswipe","html_url":"https://github.com/mapswipe","followers_url":"https://api.github.com/users/mapswipe/followers","following_url":"https://api.github.com/users/mapswipe/following{/other_user}","gists_url":"https://api.github.com/users/mapswipe/gists{/gist_id}","starred_url":"https://api.github.com/users/mapswipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapswipe/subscriptions","organizations_url":"https://api.github.com/users/mapswipe/orgs","repos_url":"https://api.github.com/users/mapswipe/repos","events_url":"https://api.github.com/users/mapswipe/events{/privacy}","received_events_url":"https://api.github.com/users/mapswipe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapswipe/python-mapswipe-workers","description":"Backend scripts to run the MapSwipe App","fork":false,"url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers","forks_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/forks","keys_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/teams","hooks_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/hooks","issue_events_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/events{/number}","events_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/events","assignees_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/assignees{/user}","branches_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/branches{/branch}","tags_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/tags","blobs_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/statuses/{sha}","languages_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/languages","stargazers_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/stargazers","contributors_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/contributors","subscribers_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/subscribers","subscription_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/subscription","commits_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/contents/{+path}","compare_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/merges","archive_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/downloads","issues_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues{/number}","pulls_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls{/number}","milestones_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/milestones{/number}","notifications_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/labels{/name}","releases_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/releases{/id}","deployments_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/deployments","created_at":"2018-02-11T12:51:25Z","updated_at":"2018-03-12T16:39:07Z","pushed_at":"2018-03-12T16:10:46Z","git_url":"git://github.com/mapswipe/python-mapswipe-workers.git","ssh_url":"git@github.com:mapswipe/python-mapswipe-workers.git","clone_url":"https://github.com/mapswipe/python-mapswipe-workers.git","svn_url":"https://github.com/mapswipe/python-mapswipe-workers","homepage":null,"size":1616,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"mapswipe:master","ref":"master","sha":"226de70a9f066f7f5c12d8a6df27d2ea3660ff0a","user":{"login":"mapswipe","id":16786834,"avatar_url":"https://avatars3.githubusercontent.com/u/16786834?v=4","gravatar_id":"","url":"https://api.github.com/users/mapswipe","html_url":"https://github.com/mapswipe","followers_url":"https://api.github.com/users/mapswipe/followers","following_url":"https://api.github.com/users/mapswipe/following{/other_user}","gists_url":"https://api.github.com/users/mapswipe/gists{/gist_id}","starred_url":"https://api.github.com/users/mapswipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapswipe/subscriptions","organizations_url":"https://api.github.com/users/mapswipe/orgs","repos_url":"https://api.github.com/users/mapswipe/repos","events_url":"https://api.github.com/users/mapswipe/events{/privacy}","received_events_url":"https://api.github.com/users/mapswipe/received_events","type":"Organization","site_admin":false},"repo":{"id":121123042,"name":"python-mapswipe-workers","full_name":"mapswipe/python-mapswipe-workers","owner":{"login":"mapswipe","id":16786834,"avatar_url":"https://avatars3.githubusercontent.com/u/16786834?v=4","gravatar_id":"","url":"https://api.github.com/users/mapswipe","html_url":"https://github.com/mapswipe","followers_url":"https://api.github.com/users/mapswipe/followers","following_url":"https://api.github.com/users/mapswipe/following{/other_user}","gists_url":"https://api.github.com/users/mapswipe/gists{/gist_id}","starred_url":"https://api.github.com/users/mapswipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapswipe/subscriptions","organizations_url":"https://api.github.com/users/mapswipe/orgs","repos_url":"https://api.github.com/users/mapswipe/repos","events_url":"https://api.github.com/users/mapswipe/events{/privacy}","received_events_url":"https://api.github.com/users/mapswipe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapswipe/python-mapswipe-workers","description":"Backend scripts to run the MapSwipe App","fork":false,"url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers","forks_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/forks","keys_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/teams","hooks_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/hooks","issue_events_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/events{/number}","events_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/events","assignees_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/assignees{/user}","branches_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/branches{/branch}","tags_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/tags","blobs_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/statuses/{sha}","languages_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/languages","stargazers_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/stargazers","contributors_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/contributors","subscribers_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/subscribers","subscription_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/subscription","commits_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/contents/{+path}","compare_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/merges","archive_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/downloads","issues_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues{/number}","pulls_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls{/number}","milestones_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/milestones{/number}","notifications_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/labels{/name}","releases_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/releases{/id}","deployments_url":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/deployments","created_at":"2018-02-11T12:51:25Z","updated_at":"2018-03-12T16:39:07Z","pushed_at":"2018-03-12T16:10:46Z","git_url":"git://github.com/mapswipe/python-mapswipe-workers.git","ssh_url":"git@github.com:mapswipe/python-mapswipe-workers.git","clone_url":"https://github.com/mapswipe/python-mapswipe-workers.git","svn_url":"https://github.com/mapswipe/python-mapswipe-workers","homepage":null,"size":1616,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12"},"html":{"href":"https://github.com/mapswipe/python-mapswipe-workers/pull/12"},"issue":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/12"},"comments":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/mapswipe/python-mapswipe-workers/statuses/0853cee5b65f8707b124e559f4ecb7ae35cac139"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Hagellach37"}}