How to display some contour lines and hide others?How to use the % Modulo operator to select points for...

Plagiarism of code by other PhD student

Formatting a table to look nice

3.5% Interest Student Loan or use all of my savings on Tuition?

PTIJ: Should I stay away from my computer?

Rationale to prefer local variables over instance variables?

What is a term for a function that when called repeatedly, has the same effect as calling once?

How does insurance birth control work?

How do I deal with being envious of my own players?

GDAL GetGeoTransform Documentation -- Is there an oversight, or what am I misunderstanding?

Being asked to review a paper in conference one has submitted to

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

How do you say “my friend is throwing a party, do you wanna come?” in german

Is there a math equivalent to the conditional ternary operator?

How to get the first element while continue streaming?

I can't die. Who am I?

Find maximum of the output from reduce

How do we objectively assess if a dialogue sounds unnatural or cringy?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

The need of reserving one's ability in job interviews

How can I be pwned if I'm not registered on the compromised site?

How to merge row in the first column in LaTeX

Caulking a corner instead of taping with joint compound?

Why is my Contribution Detail Report (native CiviCRM Core report) not accurate?

A peculiar integral identity



How to display some contour lines and hide others?


How to use the % Modulo operator to select points for labeling?Simplify Raster Contours ArcGIS 10Interpolating contour lines from TIN-model vs Grid in ArcGIS for Desktop?Using ArcGIS Map 10.1 how does one calculate the amount of landcover lost if sea level was to rise to a 1m and 2m Contour LineSplit a line from point but with a certain distanceHow to extract elevation information from contour lines?How to make feature display after converting Features to Graphics?How to draw contour line between certain elevation range?Don't display records with null valuesDefinition Query to hide attribute dataLosing information using Zonal Statistics?













1















I'm using ArcGIS 10.2 to show this contour lines information:



http://prntscr.com/4ncvc2



They're displayed with a 10 meter contour interval, but I want to display for example each 50 meters and hide those between lines. I'm using OS windows 7 and I'd like to get some heads up with this problem.










share|improve this question

























  • What attribution is available in the contour dataset? If there is a z value (elevation) you might be able to simply apply a definition query on the dataset.

    – Dan_h_b
    Sep 16 '14 at 13:30











  • That would be useful @Dan_h_b, the attribute field is called COTA, the answer below is not working for me by the way.

    – Edixon Gutierrez
    Sep 16 '14 at 13:36











  • So if you open up the layer properties and go to the definition query tab, you could enter something like: "COTA" = 50 OR "COTA" =100 OR "COTA" = 150 This will show you the elevation only in increments of 50. This could be quite a long query depending on the range of your elevation values

    – Dan_h_b
    Sep 16 '14 at 13:40
















1















I'm using ArcGIS 10.2 to show this contour lines information:



http://prntscr.com/4ncvc2



They're displayed with a 10 meter contour interval, but I want to display for example each 50 meters and hide those between lines. I'm using OS windows 7 and I'd like to get some heads up with this problem.










share|improve this question

























  • What attribution is available in the contour dataset? If there is a z value (elevation) you might be able to simply apply a definition query on the dataset.

    – Dan_h_b
    Sep 16 '14 at 13:30











  • That would be useful @Dan_h_b, the attribute field is called COTA, the answer below is not working for me by the way.

    – Edixon Gutierrez
    Sep 16 '14 at 13:36











  • So if you open up the layer properties and go to the definition query tab, you could enter something like: "COTA" = 50 OR "COTA" =100 OR "COTA" = 150 This will show you the elevation only in increments of 50. This could be quite a long query depending on the range of your elevation values

    – Dan_h_b
    Sep 16 '14 at 13:40














1












1








1


1






I'm using ArcGIS 10.2 to show this contour lines information:



http://prntscr.com/4ncvc2



They're displayed with a 10 meter contour interval, but I want to display for example each 50 meters and hide those between lines. I'm using OS windows 7 and I'd like to get some heads up with this problem.










share|improve this question
















I'm using ArcGIS 10.2 to show this contour lines information:



http://prntscr.com/4ncvc2



They're displayed with a 10 meter contour interval, but I want to display for example each 50 meters and hide those between lines. I'm using OS windows 7 and I'd like to get some heads up with this problem.







arcgis-desktop windows-7 display






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 16 '14 at 13:50









WhiteboxDev

9,32712353




9,32712353










asked Sep 16 '14 at 13:23









Edixon GutierrezEdixon Gutierrez

2203617




2203617













  • What attribution is available in the contour dataset? If there is a z value (elevation) you might be able to simply apply a definition query on the dataset.

    – Dan_h_b
    Sep 16 '14 at 13:30











  • That would be useful @Dan_h_b, the attribute field is called COTA, the answer below is not working for me by the way.

    – Edixon Gutierrez
    Sep 16 '14 at 13:36











  • So if you open up the layer properties and go to the definition query tab, you could enter something like: "COTA" = 50 OR "COTA" =100 OR "COTA" = 150 This will show you the elevation only in increments of 50. This could be quite a long query depending on the range of your elevation values

    – Dan_h_b
    Sep 16 '14 at 13:40



















  • What attribution is available in the contour dataset? If there is a z value (elevation) you might be able to simply apply a definition query on the dataset.

    – Dan_h_b
    Sep 16 '14 at 13:30











  • That would be useful @Dan_h_b, the attribute field is called COTA, the answer below is not working for me by the way.

    – Edixon Gutierrez
    Sep 16 '14 at 13:36











  • So if you open up the layer properties and go to the definition query tab, you could enter something like: "COTA" = 50 OR "COTA" =100 OR "COTA" = 150 This will show you the elevation only in increments of 50. This could be quite a long query depending on the range of your elevation values

    – Dan_h_b
    Sep 16 '14 at 13:40

















What attribution is available in the contour dataset? If there is a z value (elevation) you might be able to simply apply a definition query on the dataset.

– Dan_h_b
Sep 16 '14 at 13:30





What attribution is available in the contour dataset? If there is a z value (elevation) you might be able to simply apply a definition query on the dataset.

– Dan_h_b
Sep 16 '14 at 13:30













That would be useful @Dan_h_b, the attribute field is called COTA, the answer below is not working for me by the way.

– Edixon Gutierrez
Sep 16 '14 at 13:36





That would be useful @Dan_h_b, the attribute field is called COTA, the answer below is not working for me by the way.

– Edixon Gutierrez
Sep 16 '14 at 13:36













So if you open up the layer properties and go to the definition query tab, you could enter something like: "COTA" = 50 OR "COTA" =100 OR "COTA" = 150 This will show you the elevation only in increments of 50. This could be quite a long query depending on the range of your elevation values

– Dan_h_b
Sep 16 '14 at 13:40





So if you open up the layer properties and go to the definition query tab, you could enter something like: "COTA" = 50 OR "COTA" =100 OR "COTA" = 150 This will show you the elevation only in increments of 50. This could be quite a long query depending on the range of your elevation values

– Dan_h_b
Sep 16 '14 at 13:40










4 Answers
4






active

oldest

votes


















4














As for my personal research and my to my personal work, I have found that this formula: MOD("Elevation", 50)=0 was the only one that proved to work:
http://prntscr.com/4nd5v8



But it was @WhiteboxDev idea modification the main reason to find the answer so I'll give him the answer symbol, but is the way I did the way I found an answer to my issue.






share|improve this answer


























  • You're right that in the ArcGIS select by attribute feature modulo is carried out using MOD(Attribute,Value). I don't have Arc on my computer so I wasn't able to test, I'm afraid.

    – WhiteboxDev
    Sep 16 '14 at 14:15











  • Were you using QGIS or somthing @WhiteboxDev. If you do I'll be more than glad to try it there as well. By the way, I'm having issues using the formula in a feature class from a GDB.

    – Edixon Gutierrez
    Sep 16 '14 at 14:18











  • No, I was using Whitebox Geospatial Analysis Tools. In it, Elev % 50 == 0 is equivalent to Arc's MOD("Elev", 50)=0. I'm on a Mac, so unfortunately I'm Arc-less ;)

    – WhiteboxDev
    Sep 16 '14 at 14:21













  • @WhitheboxDev, is that a free licnese software? I'm interested in programs like QGIS and GRASS. Also the MOD("Elevation", 50)=0 formula isn't working for feature claseses stored in a GDB. I'm using MOD([Elevation], 50)=0 instead but isn't working neither.

    – Edixon Gutierrez
    Sep 23 '14 at 21:36











  • Yes, Whitebox is free and open-source software; it's licensed under the GNU GPL. The equivalent statement in Whitebox is Elevation % 50 == 0 (it's actually a Groovy script) and it can be used in the Feature Selection tab of the ShapeFile's attribute table. There is a tutorial on selecting features by attribute in the Help menu and also see this blog for details: whiteboxgeospatial.wordpress.com/2014/02/28/…

    – WhiteboxDev
    Sep 24 '14 at 12:54





















2














You could select the contour features where the elevation attribute satisfies this condition:



Elev % 50 == 0



And save the selected features into a new shapefile. The % operator is the modulo and it returns the remainder from a division. You are essentially selecting the contours that are intervals of 50 m.






share|improve this answer


























  • But it shows no % but the distance above the sea ( metros sobre el nivel del mar), will that helps?

    – Edixon Gutierrez
    Sep 16 '14 at 13:32






  • 2





    No, in the expression above 'Elev' is whatever attribute you have in the file's attribute table that represents the elevation of a contour line feature. The % is the modulo operator that returns the remainder after dividing your elevation attribute by 50. When this expression equals 0, you have a contour with a 50 m interval (assuming you want it to go 0, 50, 100, 150, etc.)

    – WhiteboxDev
    Sep 16 '14 at 13:38











  • I have this attribute table: prntscr.com/4nd1mi So I go to select by atribute-> and write "Elevation"%50==0 prntscr.com/4nd1yk Teh I get this problem and it says that my SQL declaration is wrong

    – Edixon Gutierrez
    Sep 16 '14 at 13:42













  • @EdixonGutierrez, you need 2 equal signs (==) for a test statement.

    – Martin
    Sep 16 '14 at 13:53



















0














For my personal work, I have found that this formula: MOD("Contour", 50)=0 was the only one that proved to work. I am using ArcGIS 10.6






share|improve this answer








New contributor




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




























    -1














    This works perfectly in ArcGIS 10.3 and probably others:



    http://www.wwu.edu/huxley/spatial/tut/mod.htm




    Given a contour file with contours every 10 m, here's how to show only every other contour (or every 5th contour, etc.).
    •In ArcMap, add the 10m contour lines to the .mxd
    • Open the Layer Properties and select the Definiation Query tab ◦Click on the Query Builder button
    ◦In the Query Builder, create the following query
    ◦MOD ("CONTOUR", 20) = 0 (this is assuming the field name for your contour elevations is "CONTOUR")
    ◦Optionally click Verify to test the query
    ◦Click OK to close the Query Builder dialog box
    ◦Click OK to apply the query and close the Layer Properties
    •This should limit the data to only those features where the MOD of the contour elevations and 20 = 0 (that is, where the contour elevation divided by 20 is 0)
    •Open the attribute table to check to see that only elevations divisible by 20 are still included (e.g., 20, 40, 60, 80...)
    A similar process can be used to show only contours 50, 100, 150, etc,: MOD("CONTOUR", 50) = 0
    OR to show only contours 100, 200, 300...: MOD("CONTOUR", 100) = 0







    share|improve this answer



















    • 1





      This is a harder-to-read version of the other two answers.

      – Dan C
      Apr 19 '17 at 17:50











    • no its not. sorry. The other two answers lead the user to select the contours in question, the answer I posted displays only the contours in question. I tried the other two methods below and then went hunting for a correct way to handle this.

      – citrus
      Apr 19 '17 at 21:30











    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%2f114012%2fhow-to-display-some-contour-lines-and-hide-others%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    As for my personal research and my to my personal work, I have found that this formula: MOD("Elevation", 50)=0 was the only one that proved to work:
    http://prntscr.com/4nd5v8



    But it was @WhiteboxDev idea modification the main reason to find the answer so I'll give him the answer symbol, but is the way I did the way I found an answer to my issue.






    share|improve this answer


























    • You're right that in the ArcGIS select by attribute feature modulo is carried out using MOD(Attribute,Value). I don't have Arc on my computer so I wasn't able to test, I'm afraid.

      – WhiteboxDev
      Sep 16 '14 at 14:15











    • Were you using QGIS or somthing @WhiteboxDev. If you do I'll be more than glad to try it there as well. By the way, I'm having issues using the formula in a feature class from a GDB.

      – Edixon Gutierrez
      Sep 16 '14 at 14:18











    • No, I was using Whitebox Geospatial Analysis Tools. In it, Elev % 50 == 0 is equivalent to Arc's MOD("Elev", 50)=0. I'm on a Mac, so unfortunately I'm Arc-less ;)

      – WhiteboxDev
      Sep 16 '14 at 14:21













    • @WhitheboxDev, is that a free licnese software? I'm interested in programs like QGIS and GRASS. Also the MOD("Elevation", 50)=0 formula isn't working for feature claseses stored in a GDB. I'm using MOD([Elevation], 50)=0 instead but isn't working neither.

      – Edixon Gutierrez
      Sep 23 '14 at 21:36











    • Yes, Whitebox is free and open-source software; it's licensed under the GNU GPL. The equivalent statement in Whitebox is Elevation % 50 == 0 (it's actually a Groovy script) and it can be used in the Feature Selection tab of the ShapeFile's attribute table. There is a tutorial on selecting features by attribute in the Help menu and also see this blog for details: whiteboxgeospatial.wordpress.com/2014/02/28/…

      – WhiteboxDev
      Sep 24 '14 at 12:54


















    4














    As for my personal research and my to my personal work, I have found that this formula: MOD("Elevation", 50)=0 was the only one that proved to work:
    http://prntscr.com/4nd5v8



    But it was @WhiteboxDev idea modification the main reason to find the answer so I'll give him the answer symbol, but is the way I did the way I found an answer to my issue.






    share|improve this answer


























    • You're right that in the ArcGIS select by attribute feature modulo is carried out using MOD(Attribute,Value). I don't have Arc on my computer so I wasn't able to test, I'm afraid.

      – WhiteboxDev
      Sep 16 '14 at 14:15











    • Were you using QGIS or somthing @WhiteboxDev. If you do I'll be more than glad to try it there as well. By the way, I'm having issues using the formula in a feature class from a GDB.

      – Edixon Gutierrez
      Sep 16 '14 at 14:18











    • No, I was using Whitebox Geospatial Analysis Tools. In it, Elev % 50 == 0 is equivalent to Arc's MOD("Elev", 50)=0. I'm on a Mac, so unfortunately I'm Arc-less ;)

      – WhiteboxDev
      Sep 16 '14 at 14:21













    • @WhitheboxDev, is that a free licnese software? I'm interested in programs like QGIS and GRASS. Also the MOD("Elevation", 50)=0 formula isn't working for feature claseses stored in a GDB. I'm using MOD([Elevation], 50)=0 instead but isn't working neither.

      – Edixon Gutierrez
      Sep 23 '14 at 21:36











    • Yes, Whitebox is free and open-source software; it's licensed under the GNU GPL. The equivalent statement in Whitebox is Elevation % 50 == 0 (it's actually a Groovy script) and it can be used in the Feature Selection tab of the ShapeFile's attribute table. There is a tutorial on selecting features by attribute in the Help menu and also see this blog for details: whiteboxgeospatial.wordpress.com/2014/02/28/…

      – WhiteboxDev
      Sep 24 '14 at 12:54
















    4












    4








    4







    As for my personal research and my to my personal work, I have found that this formula: MOD("Elevation", 50)=0 was the only one that proved to work:
    http://prntscr.com/4nd5v8



    But it was @WhiteboxDev idea modification the main reason to find the answer so I'll give him the answer symbol, but is the way I did the way I found an answer to my issue.






    share|improve this answer















    As for my personal research and my to my personal work, I have found that this formula: MOD("Elevation", 50)=0 was the only one that proved to work:
    http://prntscr.com/4nd5v8



    But it was @WhiteboxDev idea modification the main reason to find the answer so I'll give him the answer symbol, but is the way I did the way I found an answer to my issue.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 17 '15 at 1:33









    Fezter

    16.7k105398




    16.7k105398










    answered Sep 16 '14 at 13:57









    Edixon GutierrezEdixon Gutierrez

    2203617




    2203617













    • You're right that in the ArcGIS select by attribute feature modulo is carried out using MOD(Attribute,Value). I don't have Arc on my computer so I wasn't able to test, I'm afraid.

      – WhiteboxDev
      Sep 16 '14 at 14:15











    • Were you using QGIS or somthing @WhiteboxDev. If you do I'll be more than glad to try it there as well. By the way, I'm having issues using the formula in a feature class from a GDB.

      – Edixon Gutierrez
      Sep 16 '14 at 14:18











    • No, I was using Whitebox Geospatial Analysis Tools. In it, Elev % 50 == 0 is equivalent to Arc's MOD("Elev", 50)=0. I'm on a Mac, so unfortunately I'm Arc-less ;)

      – WhiteboxDev
      Sep 16 '14 at 14:21













    • @WhitheboxDev, is that a free licnese software? I'm interested in programs like QGIS and GRASS. Also the MOD("Elevation", 50)=0 formula isn't working for feature claseses stored in a GDB. I'm using MOD([Elevation], 50)=0 instead but isn't working neither.

      – Edixon Gutierrez
      Sep 23 '14 at 21:36











    • Yes, Whitebox is free and open-source software; it's licensed under the GNU GPL. The equivalent statement in Whitebox is Elevation % 50 == 0 (it's actually a Groovy script) and it can be used in the Feature Selection tab of the ShapeFile's attribute table. There is a tutorial on selecting features by attribute in the Help menu and also see this blog for details: whiteboxgeospatial.wordpress.com/2014/02/28/…

      – WhiteboxDev
      Sep 24 '14 at 12:54





















    • You're right that in the ArcGIS select by attribute feature modulo is carried out using MOD(Attribute,Value). I don't have Arc on my computer so I wasn't able to test, I'm afraid.

      – WhiteboxDev
      Sep 16 '14 at 14:15











    • Were you using QGIS or somthing @WhiteboxDev. If you do I'll be more than glad to try it there as well. By the way, I'm having issues using the formula in a feature class from a GDB.

      – Edixon Gutierrez
      Sep 16 '14 at 14:18











    • No, I was using Whitebox Geospatial Analysis Tools. In it, Elev % 50 == 0 is equivalent to Arc's MOD("Elev", 50)=0. I'm on a Mac, so unfortunately I'm Arc-less ;)

      – WhiteboxDev
      Sep 16 '14 at 14:21













    • @WhitheboxDev, is that a free licnese software? I'm interested in programs like QGIS and GRASS. Also the MOD("Elevation", 50)=0 formula isn't working for feature claseses stored in a GDB. I'm using MOD([Elevation], 50)=0 instead but isn't working neither.

      – Edixon Gutierrez
      Sep 23 '14 at 21:36











    • Yes, Whitebox is free and open-source software; it's licensed under the GNU GPL. The equivalent statement in Whitebox is Elevation % 50 == 0 (it's actually a Groovy script) and it can be used in the Feature Selection tab of the ShapeFile's attribute table. There is a tutorial on selecting features by attribute in the Help menu and also see this blog for details: whiteboxgeospatial.wordpress.com/2014/02/28/…

      – WhiteboxDev
      Sep 24 '14 at 12:54



















    You're right that in the ArcGIS select by attribute feature modulo is carried out using MOD(Attribute,Value). I don't have Arc on my computer so I wasn't able to test, I'm afraid.

    – WhiteboxDev
    Sep 16 '14 at 14:15





    You're right that in the ArcGIS select by attribute feature modulo is carried out using MOD(Attribute,Value). I don't have Arc on my computer so I wasn't able to test, I'm afraid.

    – WhiteboxDev
    Sep 16 '14 at 14:15













    Were you using QGIS or somthing @WhiteboxDev. If you do I'll be more than glad to try it there as well. By the way, I'm having issues using the formula in a feature class from a GDB.

    – Edixon Gutierrez
    Sep 16 '14 at 14:18





    Were you using QGIS or somthing @WhiteboxDev. If you do I'll be more than glad to try it there as well. By the way, I'm having issues using the formula in a feature class from a GDB.

    – Edixon Gutierrez
    Sep 16 '14 at 14:18













    No, I was using Whitebox Geospatial Analysis Tools. In it, Elev % 50 == 0 is equivalent to Arc's MOD("Elev", 50)=0. I'm on a Mac, so unfortunately I'm Arc-less ;)

    – WhiteboxDev
    Sep 16 '14 at 14:21







    No, I was using Whitebox Geospatial Analysis Tools. In it, Elev % 50 == 0 is equivalent to Arc's MOD("Elev", 50)=0. I'm on a Mac, so unfortunately I'm Arc-less ;)

    – WhiteboxDev
    Sep 16 '14 at 14:21















    @WhitheboxDev, is that a free licnese software? I'm interested in programs like QGIS and GRASS. Also the MOD("Elevation", 50)=0 formula isn't working for feature claseses stored in a GDB. I'm using MOD([Elevation], 50)=0 instead but isn't working neither.

    – Edixon Gutierrez
    Sep 23 '14 at 21:36





    @WhitheboxDev, is that a free licnese software? I'm interested in programs like QGIS and GRASS. Also the MOD("Elevation", 50)=0 formula isn't working for feature claseses stored in a GDB. I'm using MOD([Elevation], 50)=0 instead but isn't working neither.

    – Edixon Gutierrez
    Sep 23 '14 at 21:36













    Yes, Whitebox is free and open-source software; it's licensed under the GNU GPL. The equivalent statement in Whitebox is Elevation % 50 == 0 (it's actually a Groovy script) and it can be used in the Feature Selection tab of the ShapeFile's attribute table. There is a tutorial on selecting features by attribute in the Help menu and also see this blog for details: whiteboxgeospatial.wordpress.com/2014/02/28/…

    – WhiteboxDev
    Sep 24 '14 at 12:54







    Yes, Whitebox is free and open-source software; it's licensed under the GNU GPL. The equivalent statement in Whitebox is Elevation % 50 == 0 (it's actually a Groovy script) and it can be used in the Feature Selection tab of the ShapeFile's attribute table. There is a tutorial on selecting features by attribute in the Help menu and also see this blog for details: whiteboxgeospatial.wordpress.com/2014/02/28/…

    – WhiteboxDev
    Sep 24 '14 at 12:54















    2














    You could select the contour features where the elevation attribute satisfies this condition:



    Elev % 50 == 0



    And save the selected features into a new shapefile. The % operator is the modulo and it returns the remainder from a division. You are essentially selecting the contours that are intervals of 50 m.






    share|improve this answer


























    • But it shows no % but the distance above the sea ( metros sobre el nivel del mar), will that helps?

      – Edixon Gutierrez
      Sep 16 '14 at 13:32






    • 2





      No, in the expression above 'Elev' is whatever attribute you have in the file's attribute table that represents the elevation of a contour line feature. The % is the modulo operator that returns the remainder after dividing your elevation attribute by 50. When this expression equals 0, you have a contour with a 50 m interval (assuming you want it to go 0, 50, 100, 150, etc.)

      – WhiteboxDev
      Sep 16 '14 at 13:38











    • I have this attribute table: prntscr.com/4nd1mi So I go to select by atribute-> and write "Elevation"%50==0 prntscr.com/4nd1yk Teh I get this problem and it says that my SQL declaration is wrong

      – Edixon Gutierrez
      Sep 16 '14 at 13:42













    • @EdixonGutierrez, you need 2 equal signs (==) for a test statement.

      – Martin
      Sep 16 '14 at 13:53
















    2














    You could select the contour features where the elevation attribute satisfies this condition:



    Elev % 50 == 0



    And save the selected features into a new shapefile. The % operator is the modulo and it returns the remainder from a division. You are essentially selecting the contours that are intervals of 50 m.






    share|improve this answer


























    • But it shows no % but the distance above the sea ( metros sobre el nivel del mar), will that helps?

      – Edixon Gutierrez
      Sep 16 '14 at 13:32






    • 2





      No, in the expression above 'Elev' is whatever attribute you have in the file's attribute table that represents the elevation of a contour line feature. The % is the modulo operator that returns the remainder after dividing your elevation attribute by 50. When this expression equals 0, you have a contour with a 50 m interval (assuming you want it to go 0, 50, 100, 150, etc.)

      – WhiteboxDev
      Sep 16 '14 at 13:38











    • I have this attribute table: prntscr.com/4nd1mi So I go to select by atribute-> and write "Elevation"%50==0 prntscr.com/4nd1yk Teh I get this problem and it says that my SQL declaration is wrong

      – Edixon Gutierrez
      Sep 16 '14 at 13:42













    • @EdixonGutierrez, you need 2 equal signs (==) for a test statement.

      – Martin
      Sep 16 '14 at 13:53














    2












    2








    2







    You could select the contour features where the elevation attribute satisfies this condition:



    Elev % 50 == 0



    And save the selected features into a new shapefile. The % operator is the modulo and it returns the remainder from a division. You are essentially selecting the contours that are intervals of 50 m.






    share|improve this answer















    You could select the contour features where the elevation attribute satisfies this condition:



    Elev % 50 == 0



    And save the selected features into a new shapefile. The % operator is the modulo and it returns the remainder from a division. You are essentially selecting the contours that are intervals of 50 m.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Sep 16 '14 at 14:13

























    answered Sep 16 '14 at 13:30









    WhiteboxDevWhiteboxDev

    9,32712353




    9,32712353













    • But it shows no % but the distance above the sea ( metros sobre el nivel del mar), will that helps?

      – Edixon Gutierrez
      Sep 16 '14 at 13:32






    • 2





      No, in the expression above 'Elev' is whatever attribute you have in the file's attribute table that represents the elevation of a contour line feature. The % is the modulo operator that returns the remainder after dividing your elevation attribute by 50. When this expression equals 0, you have a contour with a 50 m interval (assuming you want it to go 0, 50, 100, 150, etc.)

      – WhiteboxDev
      Sep 16 '14 at 13:38











    • I have this attribute table: prntscr.com/4nd1mi So I go to select by atribute-> and write "Elevation"%50==0 prntscr.com/4nd1yk Teh I get this problem and it says that my SQL declaration is wrong

      – Edixon Gutierrez
      Sep 16 '14 at 13:42













    • @EdixonGutierrez, you need 2 equal signs (==) for a test statement.

      – Martin
      Sep 16 '14 at 13:53



















    • But it shows no % but the distance above the sea ( metros sobre el nivel del mar), will that helps?

      – Edixon Gutierrez
      Sep 16 '14 at 13:32






    • 2





      No, in the expression above 'Elev' is whatever attribute you have in the file's attribute table that represents the elevation of a contour line feature. The % is the modulo operator that returns the remainder after dividing your elevation attribute by 50. When this expression equals 0, you have a contour with a 50 m interval (assuming you want it to go 0, 50, 100, 150, etc.)

      – WhiteboxDev
      Sep 16 '14 at 13:38











    • I have this attribute table: prntscr.com/4nd1mi So I go to select by atribute-> and write "Elevation"%50==0 prntscr.com/4nd1yk Teh I get this problem and it says that my SQL declaration is wrong

      – Edixon Gutierrez
      Sep 16 '14 at 13:42













    • @EdixonGutierrez, you need 2 equal signs (==) for a test statement.

      – Martin
      Sep 16 '14 at 13:53

















    But it shows no % but the distance above the sea ( metros sobre el nivel del mar), will that helps?

    – Edixon Gutierrez
    Sep 16 '14 at 13:32





    But it shows no % but the distance above the sea ( metros sobre el nivel del mar), will that helps?

    – Edixon Gutierrez
    Sep 16 '14 at 13:32




    2




    2





    No, in the expression above 'Elev' is whatever attribute you have in the file's attribute table that represents the elevation of a contour line feature. The % is the modulo operator that returns the remainder after dividing your elevation attribute by 50. When this expression equals 0, you have a contour with a 50 m interval (assuming you want it to go 0, 50, 100, 150, etc.)

    – WhiteboxDev
    Sep 16 '14 at 13:38





    No, in the expression above 'Elev' is whatever attribute you have in the file's attribute table that represents the elevation of a contour line feature. The % is the modulo operator that returns the remainder after dividing your elevation attribute by 50. When this expression equals 0, you have a contour with a 50 m interval (assuming you want it to go 0, 50, 100, 150, etc.)

    – WhiteboxDev
    Sep 16 '14 at 13:38













    I have this attribute table: prntscr.com/4nd1mi So I go to select by atribute-> and write "Elevation"%50==0 prntscr.com/4nd1yk Teh I get this problem and it says that my SQL declaration is wrong

    – Edixon Gutierrez
    Sep 16 '14 at 13:42







    I have this attribute table: prntscr.com/4nd1mi So I go to select by atribute-> and write "Elevation"%50==0 prntscr.com/4nd1yk Teh I get this problem and it says that my SQL declaration is wrong

    – Edixon Gutierrez
    Sep 16 '14 at 13:42















    @EdixonGutierrez, you need 2 equal signs (==) for a test statement.

    – Martin
    Sep 16 '14 at 13:53





    @EdixonGutierrez, you need 2 equal signs (==) for a test statement.

    – Martin
    Sep 16 '14 at 13:53











    0














    For my personal work, I have found that this formula: MOD("Contour", 50)=0 was the only one that proved to work. I am using ArcGIS 10.6






    share|improve this answer








    New contributor




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

























      0














      For my personal work, I have found that this formula: MOD("Contour", 50)=0 was the only one that proved to work. I am using ArcGIS 10.6






      share|improve this answer








      New contributor




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























        0












        0








        0







        For my personal work, I have found that this formula: MOD("Contour", 50)=0 was the only one that proved to work. I am using ArcGIS 10.6






        share|improve this answer








        New contributor




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










        For my personal work, I have found that this formula: MOD("Contour", 50)=0 was the only one that proved to work. I am using ArcGIS 10.6







        share|improve this answer








        New contributor




        Phoukhong Phongsa 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 answer



        share|improve this answer






        New contributor




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









        answered 16 mins ago









        Phoukhong PhongsaPhoukhong Phongsa

        13




        13




        New contributor




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





        New contributor





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






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























            -1














            This works perfectly in ArcGIS 10.3 and probably others:



            http://www.wwu.edu/huxley/spatial/tut/mod.htm




            Given a contour file with contours every 10 m, here's how to show only every other contour (or every 5th contour, etc.).
            •In ArcMap, add the 10m contour lines to the .mxd
            • Open the Layer Properties and select the Definiation Query tab ◦Click on the Query Builder button
            ◦In the Query Builder, create the following query
            ◦MOD ("CONTOUR", 20) = 0 (this is assuming the field name for your contour elevations is "CONTOUR")
            ◦Optionally click Verify to test the query
            ◦Click OK to close the Query Builder dialog box
            ◦Click OK to apply the query and close the Layer Properties
            •This should limit the data to only those features where the MOD of the contour elevations and 20 = 0 (that is, where the contour elevation divided by 20 is 0)
            •Open the attribute table to check to see that only elevations divisible by 20 are still included (e.g., 20, 40, 60, 80...)
            A similar process can be used to show only contours 50, 100, 150, etc,: MOD("CONTOUR", 50) = 0
            OR to show only contours 100, 200, 300...: MOD("CONTOUR", 100) = 0







            share|improve this answer



















            • 1





              This is a harder-to-read version of the other two answers.

              – Dan C
              Apr 19 '17 at 17:50











            • no its not. sorry. The other two answers lead the user to select the contours in question, the answer I posted displays only the contours in question. I tried the other two methods below and then went hunting for a correct way to handle this.

              – citrus
              Apr 19 '17 at 21:30
















            -1














            This works perfectly in ArcGIS 10.3 and probably others:



            http://www.wwu.edu/huxley/spatial/tut/mod.htm




            Given a contour file with contours every 10 m, here's how to show only every other contour (or every 5th contour, etc.).
            •In ArcMap, add the 10m contour lines to the .mxd
            • Open the Layer Properties and select the Definiation Query tab ◦Click on the Query Builder button
            ◦In the Query Builder, create the following query
            ◦MOD ("CONTOUR", 20) = 0 (this is assuming the field name for your contour elevations is "CONTOUR")
            ◦Optionally click Verify to test the query
            ◦Click OK to close the Query Builder dialog box
            ◦Click OK to apply the query and close the Layer Properties
            •This should limit the data to only those features where the MOD of the contour elevations and 20 = 0 (that is, where the contour elevation divided by 20 is 0)
            •Open the attribute table to check to see that only elevations divisible by 20 are still included (e.g., 20, 40, 60, 80...)
            A similar process can be used to show only contours 50, 100, 150, etc,: MOD("CONTOUR", 50) = 0
            OR to show only contours 100, 200, 300...: MOD("CONTOUR", 100) = 0







            share|improve this answer



















            • 1





              This is a harder-to-read version of the other two answers.

              – Dan C
              Apr 19 '17 at 17:50











            • no its not. sorry. The other two answers lead the user to select the contours in question, the answer I posted displays only the contours in question. I tried the other two methods below and then went hunting for a correct way to handle this.

              – citrus
              Apr 19 '17 at 21:30














            -1












            -1








            -1







            This works perfectly in ArcGIS 10.3 and probably others:



            http://www.wwu.edu/huxley/spatial/tut/mod.htm




            Given a contour file with contours every 10 m, here's how to show only every other contour (or every 5th contour, etc.).
            •In ArcMap, add the 10m contour lines to the .mxd
            • Open the Layer Properties and select the Definiation Query tab ◦Click on the Query Builder button
            ◦In the Query Builder, create the following query
            ◦MOD ("CONTOUR", 20) = 0 (this is assuming the field name for your contour elevations is "CONTOUR")
            ◦Optionally click Verify to test the query
            ◦Click OK to close the Query Builder dialog box
            ◦Click OK to apply the query and close the Layer Properties
            •This should limit the data to only those features where the MOD of the contour elevations and 20 = 0 (that is, where the contour elevation divided by 20 is 0)
            •Open the attribute table to check to see that only elevations divisible by 20 are still included (e.g., 20, 40, 60, 80...)
            A similar process can be used to show only contours 50, 100, 150, etc,: MOD("CONTOUR", 50) = 0
            OR to show only contours 100, 200, 300...: MOD("CONTOUR", 100) = 0







            share|improve this answer













            This works perfectly in ArcGIS 10.3 and probably others:



            http://www.wwu.edu/huxley/spatial/tut/mod.htm




            Given a contour file with contours every 10 m, here's how to show only every other contour (or every 5th contour, etc.).
            •In ArcMap, add the 10m contour lines to the .mxd
            • Open the Layer Properties and select the Definiation Query tab ◦Click on the Query Builder button
            ◦In the Query Builder, create the following query
            ◦MOD ("CONTOUR", 20) = 0 (this is assuming the field name for your contour elevations is "CONTOUR")
            ◦Optionally click Verify to test the query
            ◦Click OK to close the Query Builder dialog box
            ◦Click OK to apply the query and close the Layer Properties
            •This should limit the data to only those features where the MOD of the contour elevations and 20 = 0 (that is, where the contour elevation divided by 20 is 0)
            •Open the attribute table to check to see that only elevations divisible by 20 are still included (e.g., 20, 40, 60, 80...)
            A similar process can be used to show only contours 50, 100, 150, etc,: MOD("CONTOUR", 50) = 0
            OR to show only contours 100, 200, 300...: MOD("CONTOUR", 100) = 0








            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 19 '17 at 17:40









            citruscitrus

            1




            1








            • 1





              This is a harder-to-read version of the other two answers.

              – Dan C
              Apr 19 '17 at 17:50











            • no its not. sorry. The other two answers lead the user to select the contours in question, the answer I posted displays only the contours in question. I tried the other two methods below and then went hunting for a correct way to handle this.

              – citrus
              Apr 19 '17 at 21:30














            • 1





              This is a harder-to-read version of the other two answers.

              – Dan C
              Apr 19 '17 at 17:50











            • no its not. sorry. The other two answers lead the user to select the contours in question, the answer I posted displays only the contours in question. I tried the other two methods below and then went hunting for a correct way to handle this.

              – citrus
              Apr 19 '17 at 21:30








            1




            1





            This is a harder-to-read version of the other two answers.

            – Dan C
            Apr 19 '17 at 17:50





            This is a harder-to-read version of the other two answers.

            – Dan C
            Apr 19 '17 at 17:50













            no its not. sorry. The other two answers lead the user to select the contours in question, the answer I posted displays only the contours in question. I tried the other two methods below and then went hunting for a correct way to handle this.

            – citrus
            Apr 19 '17 at 21:30





            no its not. sorry. The other two answers lead the user to select the contours in question, the answer I posted displays only the contours in question. I tried the other two methods below and then went hunting for a correct way to handle this.

            – citrus
            Apr 19 '17 at 21:30


















            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%2f114012%2fhow-to-display-some-contour-lines-and-hide-others%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

            Щит и меч (фильм) Содержание Названия серий | Сюжет |...

            is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

            Meter-Bus Содержание Параметры шины | Стандартизация |...