{"action":"created","comment":{"url":"https://api.github.com/repos/qgis/QGIS/pulls/comments/75653884","id":75653884,"diff_hunk":"@@ -133,6 +133,8 @@ class CORE_EXPORT QgsGeometry\n     /** Creates a new geometry from a QgsRectangle */\n     static QgsGeometry fromRect( const QgsRectangle& rect );\n \n+    static QgsGeometry collectGeometry( const QList< QgsGeometry >& geometries );","path":"src/core/geometry/qgsgeometry.h","position":4,"original_position":4,"commit_id":"ac0f544edf7fa3f100fc96434414f0648fe07a6f","original_commit_id":"ac0f544edf7fa3f100fc96434414f0648fe07a6f","user":{"login":"nyalldawson","id":1829991,"avatar_url":"https://avatars.githubusercontent.com/u/1829991?v=3","gravatar_id":"","url":"https://api.github.com/users/nyalldawson","html_url":"https://github.com/nyalldawson","followers_url":"https://api.github.com/users/nyalldawson/followers","following_url":"https://api.github.com/users/nyalldawson/following{/other_user}","gists_url":"https://api.github.com/users/nyalldawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nyalldawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyalldawson/subscriptions","organizations_url":"https://api.github.com/users/nyalldawson/orgs","repos_url":"https://api.github.com/users/nyalldawson/repos","events_url":"https://api.github.com/users/nyalldawson/events{/privacy}","received_events_url":"https://api.github.com/users/nyalldawson/received_events","type":"User","site_admin":false},"body":"will need docs + sip bindings","created_at":"2016-08-22T10:29:49Z","updated_at":"2016-08-22T10:29:49Z","html_url":"https://github.com/qgis/QGIS/pull/3419#discussion_r75653884","pull_request_url":"https://api.github.com/repos/qgis/QGIS/pulls/3419","_links":{"self":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/comments/75653884"},"html":{"href":"https://github.com/qgis/QGIS/pull/3419#discussion_r75653884"},"pull_request":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3419"}}},"pull_request":{"url":"https://api.github.com/repos/qgis/QGIS/pulls/3419","id":82143276,"html_url":"https://github.com/qgis/QGIS/pull/3419","diff_url":"https://github.com/qgis/QGIS/pull/3419.diff","patch_url":"https://github.com/qgis/QGIS/pull/3419.patch","issue_url":"https://api.github.com/repos/qgis/QGIS/issues/3419","number":3419,"state":"open","locked":false,"title":"[expression] support collection of geometry in the aggregate() function","user":{"login":"nirvn","id":1728657,"avatar_url":"https://avatars.githubusercontent.com/u/1728657?v=3","gravatar_id":"","url":"https://api.github.com/users/nirvn","html_url":"https://github.com/nirvn","followers_url":"https://api.github.com/users/nirvn/followers","following_url":"https://api.github.com/users/nirvn/following{/other_user}","gists_url":"https://api.github.com/users/nirvn/gists{/gist_id}","starred_url":"https://api.github.com/users/nirvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirvn/subscriptions","organizations_url":"https://api.github.com/users/nirvn/orgs","repos_url":"https://api.github.com/users/nirvn/repos","events_url":"https://api.github.com/users/nirvn/events{/privacy}","received_events_url":"https://api.github.com/users/nirvn/received_events","type":"User","site_admin":false},"body":"This PR adds a \"collect\" geometry method to the aggregate() function to allow for the creation a multipart geometry representing the sum of aggregated geometries. \r\n\r\nThis opens the door to all sorts of interesting expression-based geometry manipulation and checks / rules. For e.g., creating a rule-based symbology that highlights in green concessions (i.e. polygons) intersecting a flight path:\r\n![aggregate](https://cloud.githubusercontent.com/assets/1728657/17846347/283355f0-6872-11e6-821b-230decaf4989.png)\r\n_the rule used to color the polygons in green is: intersects($geometry,aggregate('flight_path_layer','collect',$geometry))_\r\n\r\n@nyalldawson , how does this look?","created_at":"2016-08-22T07:10:35Z","updated_at":"2016-08-22T10:29:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66ba8b66105b0eab881deb9c16756574c60ed7a4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/qgis/QGIS/pulls/3419/commits","review_comments_url":"https://api.github.com/repos/qgis/QGIS/pulls/3419/comments","review_comment_url":"https://api.github.com/repos/qgis/QGIS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qgis/QGIS/issues/3419/comments","statuses_url":"https://api.github.com/repos/qgis/QGIS/statuses/ac0f544edf7fa3f100fc96434414f0648fe07a6f","head":{"label":"nirvn:aggregate_collect_geom","ref":"aggregate_collect_geom","sha":"ac0f544edf7fa3f100fc96434414f0648fe07a6f","user":{"login":"nirvn","id":1728657,"avatar_url":"https://avatars.githubusercontent.com/u/1728657?v=3","gravatar_id":"","url":"https://api.github.com/users/nirvn","html_url":"https://github.com/nirvn","followers_url":"https://api.github.com/users/nirvn/followers","following_url":"https://api.github.com/users/nirvn/following{/other_user}","gists_url":"https://api.github.com/users/nirvn/gists{/gist_id}","starred_url":"https://api.github.com/users/nirvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirvn/subscriptions","organizations_url":"https://api.github.com/users/nirvn/orgs","repos_url":"https://api.github.com/users/nirvn/repos","events_url":"https://api.github.com/users/nirvn/events{/privacy}","received_events_url":"https://api.github.com/users/nirvn/received_events","type":"User","site_admin":false},"repo":{"id":16859880,"name":"QGIS","full_name":"nirvn/QGIS","owner":{"login":"nirvn","id":1728657,"avatar_url":"https://avatars.githubusercontent.com/u/1728657?v=3","gravatar_id":"","url":"https://api.github.com/users/nirvn","html_url":"https://github.com/nirvn","followers_url":"https://api.github.com/users/nirvn/followers","following_url":"https://api.github.com/users/nirvn/following{/other_user}","gists_url":"https://api.github.com/users/nirvn/gists{/gist_id}","starred_url":"https://api.github.com/users/nirvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirvn/subscriptions","organizations_url":"https://api.github.com/users/nirvn/orgs","repos_url":"https://api.github.com/users/nirvn/repos","events_url":"https://api.github.com/users/nirvn/events{/privacy}","received_events_url":"https://api.github.com/users/nirvn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nirvn/QGIS","description":"QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)","fork":true,"url":"https://api.github.com/repos/nirvn/QGIS","forks_url":"https://api.github.com/repos/nirvn/QGIS/forks","keys_url":"https://api.github.com/repos/nirvn/QGIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nirvn/QGIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nirvn/QGIS/teams","hooks_url":"https://api.github.com/repos/nirvn/QGIS/hooks","issue_events_url":"https://api.github.com/repos/nirvn/QGIS/issues/events{/number}","events_url":"https://api.github.com/repos/nirvn/QGIS/events","assignees_url":"https://api.github.com/repos/nirvn/QGIS/assignees{/user}","branches_url":"https://api.github.com/repos/nirvn/QGIS/branches{/branch}","tags_url":"https://api.github.com/repos/nirvn/QGIS/tags","blobs_url":"https://api.github.com/repos/nirvn/QGIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nirvn/QGIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nirvn/QGIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/nirvn/QGIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nirvn/QGIS/statuses/{sha}","languages_url":"https://api.github.com/repos/nirvn/QGIS/languages","stargazers_url":"https://api.github.com/repos/nirvn/QGIS/stargazers","contributors_url":"https://api.github.com/repos/nirvn/QGIS/contributors","subscribers_url":"https://api.github.com/repos/nirvn/QGIS/subscribers","subscription_url":"https://api.github.com/repos/nirvn/QGIS/subscription","commits_url":"https://api.github.com/repos/nirvn/QGIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/nirvn/QGIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/nirvn/QGIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/nirvn/QGIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/nirvn/QGIS/contents/{+path}","compare_url":"https://api.github.com/repos/nirvn/QGIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nirvn/QGIS/merges","archive_url":"https://api.github.com/repos/nirvn/QGIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nirvn/QGIS/downloads","issues_url":"https://api.github.com/repos/nirvn/QGIS/issues{/number}","pulls_url":"https://api.github.com/repos/nirvn/QGIS/pulls{/number}","milestones_url":"https://api.github.com/repos/nirvn/QGIS/milestones{/number}","notifications_url":"https://api.github.com/repos/nirvn/QGIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nirvn/QGIS/labels{/name}","releases_url":"https://api.github.com/repos/nirvn/QGIS/releases{/id}","deployments_url":"https://api.github.com/repos/nirvn/QGIS/deployments","created_at":"2014-02-15T09:27:56Z","updated_at":"2014-03-07T12:37:59Z","pushed_at":"2016-08-22T10:24:10Z","git_url":"git://github.com/nirvn/QGIS.git","ssh_url":"git@github.com:nirvn/QGIS.git","clone_url":"https://github.com/nirvn/QGIS.git","svn_url":"https://github.com/nirvn/QGIS","homepage":"http://qgis.org","size":1113271,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"qgis:master","ref":"master","sha":"3251eced69919ce7f94be50ab67c75ebe5c0d413","user":{"login":"qgis","id":483444,"avatar_url":"https://avatars.githubusercontent.com/u/483444?v=3","gravatar_id":"","url":"https://api.github.com/users/qgis","html_url":"https://github.com/qgis","followers_url":"https://api.github.com/users/qgis/followers","following_url":"https://api.github.com/users/qgis/following{/other_user}","gists_url":"https://api.github.com/users/qgis/gists{/gist_id}","starred_url":"https://api.github.com/users/qgis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qgis/subscriptions","organizations_url":"https://api.github.com/users/qgis/orgs","repos_url":"https://api.github.com/users/qgis/repos","events_url":"https://api.github.com/users/qgis/events{/privacy}","received_events_url":"https://api.github.com/users/qgis/received_events","type":"Organization","site_admin":false},"repo":{"id":1690480,"name":"QGIS","full_name":"qgis/QGIS","owner":{"login":"qgis","id":483444,"avatar_url":"https://avatars.githubusercontent.com/u/483444?v=3","gravatar_id":"","url":"https://api.github.com/users/qgis","html_url":"https://github.com/qgis","followers_url":"https://api.github.com/users/qgis/followers","following_url":"https://api.github.com/users/qgis/following{/other_user}","gists_url":"https://api.github.com/users/qgis/gists{/gist_id}","starred_url":"https://api.github.com/users/qgis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qgis/subscriptions","organizations_url":"https://api.github.com/users/qgis/orgs","repos_url":"https://api.github.com/users/qgis/repos","events_url":"https://api.github.com/users/qgis/events{/privacy}","received_events_url":"https://api.github.com/users/qgis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qgis/QGIS","description":"QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)","fork":false,"url":"https://api.github.com/repos/qgis/QGIS","forks_url":"https://api.github.com/repos/qgis/QGIS/forks","keys_url":"https://api.github.com/repos/qgis/QGIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qgis/QGIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qgis/QGIS/teams","hooks_url":"https://api.github.com/repos/qgis/QGIS/hooks","issue_events_url":"https://api.github.com/repos/qgis/QGIS/issues/events{/number}","events_url":"https://api.github.com/repos/qgis/QGIS/events","assignees_url":"https://api.github.com/repos/qgis/QGIS/assignees{/user}","branches_url":"https://api.github.com/repos/qgis/QGIS/branches{/branch}","tags_url":"https://api.github.com/repos/qgis/QGIS/tags","blobs_url":"https://api.github.com/repos/qgis/QGIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qgis/QGIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qgis/QGIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/qgis/QGIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qgis/QGIS/statuses/{sha}","languages_url":"https://api.github.com/repos/qgis/QGIS/languages","stargazers_url":"https://api.github.com/repos/qgis/QGIS/stargazers","contributors_url":"https://api.github.com/repos/qgis/QGIS/contributors","subscribers_url":"https://api.github.com/repos/qgis/QGIS/subscribers","subscription_url":"https://api.github.com/repos/qgis/QGIS/subscription","commits_url":"https://api.github.com/repos/qgis/QGIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/qgis/QGIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/qgis/QGIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/qgis/QGIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/qgis/QGIS/contents/{+path}","compare_url":"https://api.github.com/repos/qgis/QGIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qgis/QGIS/merges","archive_url":"https://api.github.com/repos/qgis/QGIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qgis/QGIS/downloads","issues_url":"https://api.github.com/repos/qgis/QGIS/issues{/number}","pulls_url":"https://api.github.com/repos/qgis/QGIS/pulls{/number}","milestones_url":"https://api.github.com/repos/qgis/QGIS/milestones{/number}","notifications_url":"https://api.github.com/repos/qgis/QGIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qgis/QGIS/labels{/name}","releases_url":"https://api.github.com/repos/qgis/QGIS/releases{/id}","deployments_url":"https://api.github.com/repos/qgis/QGIS/deployments","created_at":"2011-05-02T08:06:26Z","updated_at":"2016-08-21T22:41:12Z","pushed_at":"2016-08-22T10:24:11Z","git_url":"git://github.com/qgis/QGIS.git","ssh_url":"git@github.com:qgis/QGIS.git","clone_url":"https://github.com/qgis/QGIS.git","svn_url":"https://github.com/qgis/QGIS","homepage":"http://qgis.org","size":1261863,"stargazers_count":1074,"watchers_count":1074,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":890,"mirror_url":null,"open_issues_count":56,"forks":890,"open_issues":56,"watchers":1074,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3419"},"html":{"href":"https://github.com/qgis/QGIS/pull/3419"},"issue":{"href":"https://api.github.com/repos/qgis/QGIS/issues/3419"},"comments":{"href":"https://api.github.com/repos/qgis/QGIS/issues/3419/comments"},"review_comments":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3419/comments"},"review_comment":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3419/commits"},"statuses":{"href":"https://api.github.com/repos/qgis/QGIS/statuses/ac0f544edf7fa3f100fc96434414f0648fe07a6f"}}}}
{"actor":{"display_login":"nyalldawson"}}