hi! how would i display the contour lines in such a way that the color of every 100 contour interval is bolder than the others given this kind of
attribute tables shown below? thank you.
-In the value field select Contour(the field has to be a numerical). It by default dispalys 5 classes with some default intervals.
-Click on classify and in the method drop down select defined interval and provide the interval that you need.
-Select a suitable color ramp and double click each symbol to change the symbol properties.
thank you for this but it only displays the ranges of contours, i just wanted to have only 2 colors, separating the index contours to intermediate contours. since i have 5m contour intervals, i wanted to designate the 100,200,300...etc. as the index contour and the rest as intermediate and labelled only the index contour in the lay-out.
what will be the easiest and fastest way to do this? do i have to use the query builder and make some equation to display only the contours having 100 contour intervals (i.e 100, 200, 300...)?
Yes, you will have to exclude the ones that you dont want.
Under the classify option ,you will see a button "Exclusion", over here specify the following queryy:
Contours NOT IN (100,200,300...)
The above query makes it easier instead of giving Contours IN (5,10,15...)
Found a discussion on the old Mapping Center site at http://mappingcenter.esri.com/index.cfm?fa=ask.answers&q=533
You could have the layer twice in your TOC and set a definition query like one of these:
For Shapefiles: mod("Contour", 200) = 0For SQL Server FeatureClasses: Contour % 200 = 0For MS Access FeatureClasses: [Contour] MOD 200 = 0
Replace Contour with the name of your field that has the contour values and set the number to the interval you want. If you place this layer above your other contour layer you can set the secondary one to symbolize all the same. The major contours will cover up the appropriate lines.
Another way to go is to calculate a new field that is basically a binary, yes (or 1, or whatever indicator you want to use) for major contours, and no (or 0 or whatever) for minor ones. Then you can use unique values symbology to draw each of the 2 line types.
For example, add a short integer field to the contours data. Calculate that field using an Advanced field calculator statement, like:
k = 0if [Contour] MOD 250 = 0 thenk = 1endif
Set the result to = k.
Using a definition query may slow drawing performance to an unacceptable level.
Also, some relevent info from StackExchange at http://gis.stackexchange.com/questions/34426/using-mod-with-if-then-field-calculation
I think David and Vijay are both correct. There are probably 10 different ways (or more) to do this. May I add another suggestion. You could add a new field to the contour feature class for symbology, calculate the 100 contour = "Index Contour" and all other contours = "Intermediate Contour" then symbolize by that field. The downfall is if you are updating this feature class often you will have to update this field as well. Good luck
I am trying to calculate it using the field calculator but how come i can't find the advanced field calculator to use the MOD in the equation? By the way, I'm using the ArcGIS 10 version. Thank you.
That may be an old reference? I don't know if now you need to click the checkbox to "Show Codeblock". Try clicking on the link to help an reading up "About field calculations".
See my video - use contour with barrier and then symbolize to get the index contours accomplished - Using Contour with Barriers to Symbolize Contour Lines in ArcGIS - YouTube
Retrieving data ...