{"action":"created","issue":{"url":"https://api.github.com/repos/demarcog/Clipper/issues/6","repository_url":"https://api.github.com/repos/demarcog/Clipper","labels_url":"https://api.github.com/repos/demarcog/Clipper/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/demarcog/Clipper/issues/6/comments","events_url":"https://api.github.com/repos/demarcog/Clipper/issues/6/events","html_url":"https://github.com/demarcog/Clipper/issues/6","id":324323681,"number":6,"title":"Additional intersect functionality","user":{"login":"andywicht","id":21099522,"avatar_url":"https://avatars3.githubusercontent.com/u/21099522?v=4","gravatar_id":"","url":"https://api.github.com/users/andywicht","html_url":"https://github.com/andywicht","followers_url":"https://api.github.com/users/andywicht/followers","following_url":"https://api.github.com/users/andywicht/following{/other_user}","gists_url":"https://api.github.com/users/andywicht/gists{/gist_id}","starred_url":"https://api.github.com/users/andywicht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andywicht/subscriptions","organizations_url":"https://api.github.com/users/andywicht/orgs","repos_url":"https://api.github.com/users/andywicht/repos","events_url":"https://api.github.com/users/andywicht/events{/privacy}","received_events_url":"https://api.github.com/users/andywicht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-18T08:50:47Z","updated_at":"2018-05-18T15:32:58Z","closed_at":null,"author_association":"NONE","body":"In the plugin version for QGIS 3 there is the possibility to preview the clip result and the intersection result.\r\nThe intersection result can also be really interesting in a digitizing workflow.\r\n\r\nWould it be possible to combine the clipper function with the intersection preview function to create a new tool which first does the clip (erases the parts under the clipping polygon) and then inserts the intersection preview result as a new feature?\r\n\r\nThat would also lead to the consistency that both preview functions have an related non-preview function.\r\n"},"comment":{"url":"https://api.github.com/repos/demarcog/Clipper/issues/comments/390245210","html_url":"https://github.com/demarcog/Clipper/issues/6#issuecomment-390245210","issue_url":"https://api.github.com/repos/demarcog/Clipper/issues/6","id":390245210,"user":{"login":"andywicht","id":21099522,"avatar_url":"https://avatars3.githubusercontent.com/u/21099522?v=4","gravatar_id":"","url":"https://api.github.com/users/andywicht","html_url":"https://github.com/andywicht","followers_url":"https://api.github.com/users/andywicht/followers","following_url":"https://api.github.com/users/andywicht/following{/other_user}","gists_url":"https://api.github.com/users/andywicht/gists{/gist_id}","starred_url":"https://api.github.com/users/andywicht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andywicht/subscriptions","organizations_url":"https://api.github.com/users/andywicht/orgs","repos_url":"https://api.github.com/users/andywicht/repos","events_url":"https://api.github.com/users/andywicht/events{/privacy}","received_events_url":"https://api.github.com/users/andywicht/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T15:32:58Z","updated_at":"2018-05-18T15:32:58Z","author_association":"NONE","body":"Hello,\r\nthank you for the response.\r\n1. Isn't it just possible to delete the clipping feature as a last step to the process? Indeed it should not be part of the result set in any way (-> overlap). \r\n2. I am willing to help as much as I can. I have some python experience but none whatsoever connected to QGIS plugin development.\r\n\r\nIn my opinion all necessary calculation steps are already available in your plugin.\r\n1. the logic which defines a polygon as a clipping polygon. In that case the intersecting polygon\r\n2. intersect the input with the intersecting polygon (already done for the preview, just don't write the result in a temp layer but store it in memory).\r\n3. clip the input with the intersecting polygon (as the clipper function currently does) to remove the parts under the intersecting polygon.\r\n4. remove the intersecting polygon\r\n5. insert the intersection from memory into the source layer\r\n6. (attribute handling I am almost inclined to say that at the start just insert with null attributes)\r\n\r\nJust let me know what I can do to help!\r\nThanks  alot.\r\n\r\nAndreas"}}
{"actor":{"display_login":"andywicht"}}