Adding Not Operator in Definition Query of ArcGIS Pro?










2














I am using ArcGIS Pro 2.2



I want to apply a definition query saying



NOT (name contains 'road%')



apparently there is no option to add Not Operator in query neither there seem to be any option saying not contains.



Is there a way to add Not Operator in definition query using ArcGIS Pro?










share|improve this question




























    2














    I am using ArcGIS Pro 2.2



    I want to apply a definition query saying



    NOT (name contains 'road%')



    apparently there is no option to add Not Operator in query neither there seem to be any option saying not contains.



    Is there a way to add Not Operator in definition query using ArcGIS Pro?










    share|improve this question


























      2












      2








      2







      I am using ArcGIS Pro 2.2



      I want to apply a definition query saying



      NOT (name contains 'road%')



      apparently there is no option to add Not Operator in query neither there seem to be any option saying not contains.



      Is there a way to add Not Operator in definition query using ArcGIS Pro?










      share|improve this question















      I am using ArcGIS Pro 2.2



      I want to apply a definition query saying



      NOT (name contains 'road%')



      apparently there is no option to add Not Operator in query neither there seem to be any option saying not contains.



      Is there a way to add Not Operator in definition query using ArcGIS Pro?







      arcgis-pro definition-query operator






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 6:36









      PolyGeo

      53.3k1779238




      53.3k1779238










      asked Nov 12 '18 at 6:15









      user4906240user4906240

      376110




      376110




















          1 Answer
          1






          active

          oldest

          votes


















          4














          You can do this, but not in Edit Clause Mode, so you need to switch to Edit SQL Mode first using the toggle at top left.



          As a test using ArcGIS Pro 2.2.4 I used the expression NAME NOT LIKE '%ust%' to filter all countries except Australia and Austria from the Natural Earth countries successfully.



          enter image description here



          The warning (seen in the picture) that "The expression can't be edited in Clause mode" comes up if I try to toggle back to Edit Clause Mode using the blue icon at top left. Nevertheless, the expression can be used (just not edited in Clause mode).



          If you take out the word NOT to make it NAME LIKE '%ust%' then you can toggle back to Edit Clause Mode where you will see that the clause displays as NAME contains the text ust.






          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
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f302235%2fadding-not-operator-in-definition-query-of-arcgis-pro%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            You can do this, but not in Edit Clause Mode, so you need to switch to Edit SQL Mode first using the toggle at top left.



            As a test using ArcGIS Pro 2.2.4 I used the expression NAME NOT LIKE '%ust%' to filter all countries except Australia and Austria from the Natural Earth countries successfully.



            enter image description here



            The warning (seen in the picture) that "The expression can't be edited in Clause mode" comes up if I try to toggle back to Edit Clause Mode using the blue icon at top left. Nevertheless, the expression can be used (just not edited in Clause mode).



            If you take out the word NOT to make it NAME LIKE '%ust%' then you can toggle back to Edit Clause Mode where you will see that the clause displays as NAME contains the text ust.






            share|improve this answer



























              4














              You can do this, but not in Edit Clause Mode, so you need to switch to Edit SQL Mode first using the toggle at top left.



              As a test using ArcGIS Pro 2.2.4 I used the expression NAME NOT LIKE '%ust%' to filter all countries except Australia and Austria from the Natural Earth countries successfully.



              enter image description here



              The warning (seen in the picture) that "The expression can't be edited in Clause mode" comes up if I try to toggle back to Edit Clause Mode using the blue icon at top left. Nevertheless, the expression can be used (just not edited in Clause mode).



              If you take out the word NOT to make it NAME LIKE '%ust%' then you can toggle back to Edit Clause Mode where you will see that the clause displays as NAME contains the text ust.






              share|improve this answer

























                4












                4








                4






                You can do this, but not in Edit Clause Mode, so you need to switch to Edit SQL Mode first using the toggle at top left.



                As a test using ArcGIS Pro 2.2.4 I used the expression NAME NOT LIKE '%ust%' to filter all countries except Australia and Austria from the Natural Earth countries successfully.



                enter image description here



                The warning (seen in the picture) that "The expression can't be edited in Clause mode" comes up if I try to toggle back to Edit Clause Mode using the blue icon at top left. Nevertheless, the expression can be used (just not edited in Clause mode).



                If you take out the word NOT to make it NAME LIKE '%ust%' then you can toggle back to Edit Clause Mode where you will see that the clause displays as NAME contains the text ust.






                share|improve this answer














                You can do this, but not in Edit Clause Mode, so you need to switch to Edit SQL Mode first using the toggle at top left.



                As a test using ArcGIS Pro 2.2.4 I used the expression NAME NOT LIKE '%ust%' to filter all countries except Australia and Austria from the Natural Earth countries successfully.



                enter image description here



                The warning (seen in the picture) that "The expression can't be edited in Clause mode" comes up if I try to toggle back to Edit Clause Mode using the blue icon at top left. Nevertheless, the expression can be used (just not edited in Clause mode).



                If you take out the word NOT to make it NAME LIKE '%ust%' then you can toggle back to Edit Clause Mode where you will see that the clause displays as NAME contains the text ust.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 12 '18 at 6:41

























                answered Nov 12 '18 at 6:34









                PolyGeoPolyGeo

                53.3k1779238




                53.3k1779238



























                    draft saved

                    draft discarded
















































                    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%2f302235%2fadding-not-operator-in-definition-query-of-arcgis-pro%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

                    Use pre created SQLite database for Android project in kotlin

                    Darth Vader #20

                    Ondo