From c8f8490c99d377f10b41787033360a112ae06cd7 Mon Sep 17 00:00:00 2001 From: ThomasG77 Date: Wed, 28 Dec 2011 15:42:59 -0800 Subject: [PATCH] Updated MinScaleDenominator (markdown) --- MinScaleDenominator.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/MinScaleDenominator.md b/MinScaleDenominator.md index c967922..265532c 100644 --- a/MinScaleDenominator.md +++ b/MinScaleDenominator.md @@ -6,7 +6,7 @@ Activates the rule, if [ScaleAndPpi scale] >= minScaleDenominator - 1e-6 Example: - #!xml +```xml +``` - - #!python - thin_lines_rule = Rule() - thin_lines_rule.min_scale = 2500001 - thin_lines_rule.max_scale = 5000000000000 - thin_state_line = LineSymbolizer(Color('#A0A0AA'),.5) - thin_lines_rule.symbols.append(thin_state_line) - state_borders.rules.append( thin_lines_rule ) +```python + thin_lines_rule = Rule() + thin_lines_rule.min_scale = 2500001 + thin_lines_rule.max_scale = 5000000000000 + thin_state_line = LineSymbolizer(Color('#A0A0AA'),.5) + thin_lines_rule.symbols.append(thin_state_line) + 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 \ No newline at end of file