Updated MinScaleDenominator (markdown)

ThomasG77 2011-12-28 15:42:59 -08:00
parent f8960878fa
commit c8f8490c99

@ -6,7 +6,7 @@ Activates the rule, if [ScaleAndPpi scale] >= minScaleDenominator - 1e-6
Example: Example:
#!xml ```xml
<Style name="text"> <Style name="text">
<Rule> <Rule>
<Filter>[place] = 'city'</Filter> <Filter>[place] = 'city'</Filter>
@ -15,14 +15,15 @@ Example:
<TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000" dy="0" halo_radius="1" wrap_width="0"/> <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule> </Rule>
</Style> </Style>
```
```python
#!python thin_lines_rule = Rule()
thin_lines_rule = Rule() thin_lines_rule.min_scale = 2500001
thin_lines_rule.min_scale = 2500001 thin_lines_rule.max_scale = 5000000000000
thin_lines_rule.max_scale = 5000000000000 thin_state_line = LineSymbolizer(Color('#A0A0AA'),.5)
thin_state_line = LineSymbolizer(Color('#A0A0AA'),.5) thin_lines_rule.symbols.append(thin_state_line)
thin_lines_rule.symbols.append(thin_state_line) state_borders.rules.append( thin_lines_rule )
state_borders.rules.append( thin_lines_rule ) ```
It appears that both min and max scale denominators are required. Also, note that if you are writing multiple rules which format items different on x > y > z, reformat to rules which format on x > y + 1, y > z It appears that both min and max scale denominators are required. Also, note that if you are writing multiple rules which format items different on x > y > z, reformat to rules which format on x > y + 1, y > z