How do you use QGIS to remove portions of polygons that overlap in the same layer?












2















Is there a way to easily eliminate the overlapping portions of polygons in the same layer?



For example, I want to turn this
enter image description here



into this



enter image description here



I used Union to break the polygons apart where they overlapped, and then used Delete Duplicate Geometries to get rid of half the overlaps, but still had to manually delete the others. That's fine for the example, but won't work with the large amount of polygons that will be in the real data. Is there a better way to do this?










share|improve this question









New contributor




Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Thank you for including "before" and "after" images of what you're trying to achieve. It made your question easy to understand.

    – csk
    4 hours ago
















2















Is there a way to easily eliminate the overlapping portions of polygons in the same layer?



For example, I want to turn this
enter image description here



into this



enter image description here



I used Union to break the polygons apart where they overlapped, and then used Delete Duplicate Geometries to get rid of half the overlaps, but still had to manually delete the others. That's fine for the example, but won't work with the large amount of polygons that will be in the real data. Is there a better way to do this?










share|improve this question









New contributor




Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Thank you for including "before" and "after" images of what you're trying to achieve. It made your question easy to understand.

    – csk
    4 hours ago














2












2








2








Is there a way to easily eliminate the overlapping portions of polygons in the same layer?



For example, I want to turn this
enter image description here



into this



enter image description here



I used Union to break the polygons apart where they overlapped, and then used Delete Duplicate Geometries to get rid of half the overlaps, but still had to manually delete the others. That's fine for the example, but won't work with the large amount of polygons that will be in the real data. Is there a better way to do this?










share|improve this question









New contributor




Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Is there a way to easily eliminate the overlapping portions of polygons in the same layer?



For example, I want to turn this
enter image description here



into this



enter image description here



I used Union to break the polygons apart where they overlapped, and then used Delete Duplicate Geometries to get rid of half the overlaps, but still had to manually delete the others. That's fine for the example, but won't work with the large amount of polygons that will be in the real data. Is there a better way to do this?







qgis






share|improve this question









New contributor




Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 4 hours ago









csk

7,577833




7,577833






New contributor




Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









ChadChad

111




111




New contributor




Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Chad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Thank you for including "before" and "after" images of what you're trying to achieve. It made your question easy to understand.

    – csk
    4 hours ago



















  • Thank you for including "before" and "after" images of what you're trying to achieve. It made your question easy to understand.

    – csk
    4 hours ago

















Thank you for including "before" and "after" images of what you're trying to achieve. It made your question easy to understand.

– csk
4 hours ago





Thank you for including "before" and "after" images of what you're trying to achieve. It made your question easy to understand.

– csk
4 hours ago










2 Answers
2






active

oldest

votes


















2














Use the Symmetrical Difference tool.



enter image description here




Symmetrical difference



This algorithm extracts the portions of features from both the Input and Overlay layers that do not overlap. Overlapping areas between the two layers are removed. The attribute table of the Symmetrical Difference layer contains original attributes from both the Input and Difference layers.







share|improve this answer
























  • Thanks for the help. But does this only work if they are in different layers? When I tried it, I got a blank layer. All the overlapping features will be in the same layer.

    – Chad
    3 hours ago



















1














QGIS Processing Toolbox has a SAGA Polygon self-intersection tool (under SAGA | Vector polygon tools).



It works much like QIGS Union Tool, while this tool retains only one feature per the overlapped area.



Open the attribute table of generated Intersection layer and select Delete all features whose fid (or id) is 0.



enter image description here






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "79"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Chad is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f309950%2fhow-do-you-use-qgis-to-remove-portions-of-polygons-that-overlap-in-the-same-laye%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Use the Symmetrical Difference tool.



    enter image description here




    Symmetrical difference



    This algorithm extracts the portions of features from both the Input and Overlay layers that do not overlap. Overlapping areas between the two layers are removed. The attribute table of the Symmetrical Difference layer contains original attributes from both the Input and Difference layers.







    share|improve this answer
























    • Thanks for the help. But does this only work if they are in different layers? When I tried it, I got a blank layer. All the overlapping features will be in the same layer.

      – Chad
      3 hours ago
















    2














    Use the Symmetrical Difference tool.



    enter image description here




    Symmetrical difference



    This algorithm extracts the portions of features from both the Input and Overlay layers that do not overlap. Overlapping areas between the two layers are removed. The attribute table of the Symmetrical Difference layer contains original attributes from both the Input and Difference layers.







    share|improve this answer
























    • Thanks for the help. But does this only work if they are in different layers? When I tried it, I got a blank layer. All the overlapping features will be in the same layer.

      – Chad
      3 hours ago














    2












    2








    2







    Use the Symmetrical Difference tool.



    enter image description here




    Symmetrical difference



    This algorithm extracts the portions of features from both the Input and Overlay layers that do not overlap. Overlapping areas between the two layers are removed. The attribute table of the Symmetrical Difference layer contains original attributes from both the Input and Difference layers.







    share|improve this answer













    Use the Symmetrical Difference tool.



    enter image description here




    Symmetrical difference



    This algorithm extracts the portions of features from both the Input and Overlay layers that do not overlap. Overlapping areas between the two layers are removed. The attribute table of the Symmetrical Difference layer contains original attributes from both the Input and Difference layers.








    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 4 hours ago









    cskcsk

    7,577833




    7,577833













    • Thanks for the help. But does this only work if they are in different layers? When I tried it, I got a blank layer. All the overlapping features will be in the same layer.

      – Chad
      3 hours ago



















    • Thanks for the help. But does this only work if they are in different layers? When I tried it, I got a blank layer. All the overlapping features will be in the same layer.

      – Chad
      3 hours ago

















    Thanks for the help. But does this only work if they are in different layers? When I tried it, I got a blank layer. All the overlapping features will be in the same layer.

    – Chad
    3 hours ago





    Thanks for the help. But does this only work if they are in different layers? When I tried it, I got a blank layer. All the overlapping features will be in the same layer.

    – Chad
    3 hours ago













    1














    QGIS Processing Toolbox has a SAGA Polygon self-intersection tool (under SAGA | Vector polygon tools).



    It works much like QIGS Union Tool, while this tool retains only one feature per the overlapped area.



    Open the attribute table of generated Intersection layer and select Delete all features whose fid (or id) is 0.



    enter image description here






    share|improve this answer






























      1














      QGIS Processing Toolbox has a SAGA Polygon self-intersection tool (under SAGA | Vector polygon tools).



      It works much like QIGS Union Tool, while this tool retains only one feature per the overlapped area.



      Open the attribute table of generated Intersection layer and select Delete all features whose fid (or id) is 0.



      enter image description here






      share|improve this answer




























        1












        1








        1







        QGIS Processing Toolbox has a SAGA Polygon self-intersection tool (under SAGA | Vector polygon tools).



        It works much like QIGS Union Tool, while this tool retains only one feature per the overlapped area.



        Open the attribute table of generated Intersection layer and select Delete all features whose fid (or id) is 0.



        enter image description here






        share|improve this answer















        QGIS Processing Toolbox has a SAGA Polygon self-intersection tool (under SAGA | Vector polygon tools).



        It works much like QIGS Union Tool, while this tool retains only one feature per the overlapped area.



        Open the attribute table of generated Intersection layer and select Delete all features whose fid (or id) is 0.



        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 22 mins ago

























        answered 1 hour ago









        KazuhitoKazuhito

        14.9k31677




        14.9k31677






















            Chad is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Chad is a new contributor. Be nice, and check out our Code of Conduct.













            Chad is a new contributor. Be nice, and check out our Code of Conduct.












            Chad is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f309950%2fhow-do-you-use-qgis-to-remove-portions-of-polygons-that-overlap-in-the-same-laye%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            SQL Server 17 - Attemping to backup to remote NAS but Access is denied

            Always On Availability groups resolving state after failover - Remote harden of transaction...

            Restoring from pg_dump with foreign key constraints