Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I wish to render a shapefile of builindings such that at scales below 1:5000, they have a border, and above 1:5000, they do not have a border.

For this, I went into layer properties, selected Rule-Based, and then selected the current Rule and then went to Refine Current Rules>>Add Scales to rule. After this I set the symbol for scales >5000, like I wanted.

enter image description here

Here is my layer properties. enter image description here

You can see that there is an initial symbol. How Do I remove this? This causes problem because it is present behind the symbol; for example You can see the boundary here even though the scale is greater than 1:5000:

enter image description here

I have found that that if I remove the boundary of the first symbol(the one in blue), the layer appears as expected at scales >1:5000. This seems like a workaround rather than the straightforward procedure. What is the correct procedure to use scale -rule based renderer in QGIS?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You don't need a base/initial symbol in this case. Just remove it! You only need two symbols on the same level of the symbology tree.

You can use drag and drop to rearrange the styles:

enter image description here

If you rearrange them as shown in the picture, you can delete the initial one.

share|improve this answer
    
How do I remove it? I have tried and tried, but did not figure out how to remove just the initial symbol. –  Devdatta Tengshe Nov 28 '12 at 7:30
    
Just pull your styles out of the initial one. Use drag and drop to drop them under the list. Then delete the initial one. –  underdark Nov 28 '12 at 7:38
    
When I press the remove button, it deletes all three symbols, instead of the one I had selected. After this, I Manually added the two required symbols, with the scale dependency set on each. This Seems to work. Is this what you were suggesting @underdark? –  Devdatta Tengshe Nov 28 '12 at 7:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.