QGIS - Graduated style except 0 value

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
3
down vote

favorite












I would like to graduate from a column of mine with decimal numbers.
For this I want to apply the Jenks discretisation and exclude zero.
I tried this, but it didn’t work…



enter image description here



Do you have any idea to do that?










share|improve this question





















  • try enclosing the column name in ""
    – ThingumaBob
    1 hour ago










  • I tried : "I_EVEPOP" > 0 and "I_EVEPOP" > '0' but doesn't work...
    – VioGeo
    1 hour ago

















up vote
3
down vote

favorite












I would like to graduate from a column of mine with decimal numbers.
For this I want to apply the Jenks discretisation and exclude zero.
I tried this, but it didn’t work…



enter image description here



Do you have any idea to do that?










share|improve this question





















  • try enclosing the column name in ""
    – ThingumaBob
    1 hour ago










  • I tried : "I_EVEPOP" > 0 and "I_EVEPOP" > '0' but doesn't work...
    – VioGeo
    1 hour ago













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I would like to graduate from a column of mine with decimal numbers.
For this I want to apply the Jenks discretisation and exclude zero.
I tried this, but it didn’t work…



enter image description here



Do you have any idea to do that?










share|improve this question













I would like to graduate from a column of mine with decimal numbers.
For this I want to apply the Jenks discretisation and exclude zero.
I tried this, but it didn’t work…



enter image description here



Do you have any idea to do that?







qgis style






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









VioGeo

213




213











  • try enclosing the column name in ""
    – ThingumaBob
    1 hour ago










  • I tried : "I_EVEPOP" > 0 and "I_EVEPOP" > '0' but doesn't work...
    – VioGeo
    1 hour ago

















  • try enclosing the column name in ""
    – ThingumaBob
    1 hour ago










  • I tried : "I_EVEPOP" > 0 and "I_EVEPOP" > '0' but doesn't work...
    – VioGeo
    1 hour ago
















try enclosing the column name in ""
– ThingumaBob
1 hour ago




try enclosing the column name in ""
– ThingumaBob
1 hour ago












I tried : "I_EVEPOP" > 0 and "I_EVEPOP" > '0' but doesn't work...
– VioGeo
1 hour ago





I tried : "I_EVEPOP" > 0 and "I_EVEPOP" > '0' but doesn't work...
– VioGeo
1 hour ago











3 Answers
3






active

oldest

votes

















up vote
3
down vote













"I_EVEPOP" > '0' should work.



Columns, when referenced in equations, need to be put in double quotation marks, any value you want to place, grab or check for in single marks.






share|improve this answer




















  • I tried but still don't work...
    – VioGeo
    1 hour ago

















up vote
2
down vote













You need to switch to Rule-based styling to remove 0 value from the classification. You can use Graduated classification first to classify your data using the desired column as it is and using Mode: Natural Breaks (Jenks) as you can see below:



enter image description here



However, to remove the 0 value you need to switch to Rule-Based classification, and as you can see in the following image, the highlighted rule shows the ColumnName >= Value. In this example New_ID >= 0.000



enter image description here



You need to change it to New_ID > 0.000 by removing the equal = sign. But in this case the polygon with the value equal zero will disappear.



enter image description here






share|improve this answer




















  • Actually, I would like the discretisation to be calculated without the 0. If I do that the discretisation integrated the 0 values.
    – VioGeo
    16 mins ago

















up vote
0
down vote













Your query of:



I_EVEPOP > 0


Is a binary question. You are asking QGIS, is it bigger than 0. If so it will show a 1, if not it will show a 0.



What you want is a conditional:



CASE WHEN I_EVEPOP > 0 THEN I_EVEPOP END




share




















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f296655%2fqgis-graduated-style-except-0-value%23new-answer', 'question_page');

    );

    Post as a guest






























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    "I_EVEPOP" > '0' should work.



    Columns, when referenced in equations, need to be put in double quotation marks, any value you want to place, grab or check for in single marks.






    share|improve this answer




















    • I tried but still don't work...
      – VioGeo
      1 hour ago














    up vote
    3
    down vote













    "I_EVEPOP" > '0' should work.



    Columns, when referenced in equations, need to be put in double quotation marks, any value you want to place, grab or check for in single marks.






    share|improve this answer




















    • I tried but still don't work...
      – VioGeo
      1 hour ago












    up vote
    3
    down vote










    up vote
    3
    down vote









    "I_EVEPOP" > '0' should work.



    Columns, when referenced in equations, need to be put in double quotation marks, any value you want to place, grab or check for in single marks.






    share|improve this answer












    "I_EVEPOP" > '0' should work.



    Columns, when referenced in equations, need to be put in double quotation marks, any value you want to place, grab or check for in single marks.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 1 hour ago









    Erik

    1,58011




    1,58011











    • I tried but still don't work...
      – VioGeo
      1 hour ago
















    • I tried but still don't work...
      – VioGeo
      1 hour ago















    I tried but still don't work...
    – VioGeo
    1 hour ago




    I tried but still don't work...
    – VioGeo
    1 hour ago












    up vote
    2
    down vote













    You need to switch to Rule-based styling to remove 0 value from the classification. You can use Graduated classification first to classify your data using the desired column as it is and using Mode: Natural Breaks (Jenks) as you can see below:



    enter image description here



    However, to remove the 0 value you need to switch to Rule-Based classification, and as you can see in the following image, the highlighted rule shows the ColumnName >= Value. In this example New_ID >= 0.000



    enter image description here



    You need to change it to New_ID > 0.000 by removing the equal = sign. But in this case the polygon with the value equal zero will disappear.



    enter image description here






    share|improve this answer




















    • Actually, I would like the discretisation to be calculated without the 0. If I do that the discretisation integrated the 0 values.
      – VioGeo
      16 mins ago














    up vote
    2
    down vote













    You need to switch to Rule-based styling to remove 0 value from the classification. You can use Graduated classification first to classify your data using the desired column as it is and using Mode: Natural Breaks (Jenks) as you can see below:



    enter image description here



    However, to remove the 0 value you need to switch to Rule-Based classification, and as you can see in the following image, the highlighted rule shows the ColumnName >= Value. In this example New_ID >= 0.000



    enter image description here



    You need to change it to New_ID > 0.000 by removing the equal = sign. But in this case the polygon with the value equal zero will disappear.



    enter image description here






    share|improve this answer




















    • Actually, I would like the discretisation to be calculated without the 0. If I do that the discretisation integrated the 0 values.
      – VioGeo
      16 mins ago












    up vote
    2
    down vote










    up vote
    2
    down vote









    You need to switch to Rule-based styling to remove 0 value from the classification. You can use Graduated classification first to classify your data using the desired column as it is and using Mode: Natural Breaks (Jenks) as you can see below:



    enter image description here



    However, to remove the 0 value you need to switch to Rule-Based classification, and as you can see in the following image, the highlighted rule shows the ColumnName >= Value. In this example New_ID >= 0.000



    enter image description here



    You need to change it to New_ID > 0.000 by removing the equal = sign. But in this case the polygon with the value equal zero will disappear.



    enter image description here






    share|improve this answer












    You need to switch to Rule-based styling to remove 0 value from the classification. You can use Graduated classification first to classify your data using the desired column as it is and using Mode: Natural Breaks (Jenks) as you can see below:



    enter image description here



    However, to remove the 0 value you need to switch to Rule-Based classification, and as you can see in the following image, the highlighted rule shows the ColumnName >= Value. In this example New_ID >= 0.000



    enter image description here



    You need to change it to New_ID > 0.000 by removing the equal = sign. But in this case the polygon with the value equal zero will disappear.



    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 22 mins ago









    ahmadhanb

    18.9k21644




    18.9k21644











    • Actually, I would like the discretisation to be calculated without the 0. If I do that the discretisation integrated the 0 values.
      – VioGeo
      16 mins ago
















    • Actually, I would like the discretisation to be calculated without the 0. If I do that the discretisation integrated the 0 values.
      – VioGeo
      16 mins ago















    Actually, I would like the discretisation to be calculated without the 0. If I do that the discretisation integrated the 0 values.
    – VioGeo
    16 mins ago




    Actually, I would like the discretisation to be calculated without the 0. If I do that the discretisation integrated the 0 values.
    – VioGeo
    16 mins ago










    up vote
    0
    down vote













    Your query of:



    I_EVEPOP > 0


    Is a binary question. You are asking QGIS, is it bigger than 0. If so it will show a 1, if not it will show a 0.



    What you want is a conditional:



    CASE WHEN I_EVEPOP > 0 THEN I_EVEPOP END




    share
























      up vote
      0
      down vote













      Your query of:



      I_EVEPOP > 0


      Is a binary question. You are asking QGIS, is it bigger than 0. If so it will show a 1, if not it will show a 0.



      What you want is a conditional:



      CASE WHEN I_EVEPOP > 0 THEN I_EVEPOP END




      share






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Your query of:



        I_EVEPOP > 0


        Is a binary question. You are asking QGIS, is it bigger than 0. If so it will show a 1, if not it will show a 0.



        What you want is a conditional:



        CASE WHEN I_EVEPOP > 0 THEN I_EVEPOP END




        share












        Your query of:



        I_EVEPOP > 0


        Is a binary question. You are asking QGIS, is it bigger than 0. If so it will show a 1, if not it will show a 0.



        What you want is a conditional:



        CASE WHEN I_EVEPOP > 0 THEN I_EVEPOP END





        share











        share


        share










        answered 4 mins ago









        HeikkiVesanto

        7,8261942




        7,8261942



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f296655%2fqgis-graduated-style-except-0-value%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery