Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mapnik3
  • Project information
    • Project information
    • Activity
    • Members
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
Collapse sidebar
  • 周峰
  • mapnik3
  • Wiki
  • MinScaleDenominator

MinScaleDenominator · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Hide whitespace changes
Inline Side-by-side
MinScaleDenominator.md 0 → 100644
View page @ 8516de00
<!-- Name: MinScaleDenominator -->
<!-- Version: 3 -->
<!-- Last-Modified: 2009/04/03 14:37:17 -->
<!-- Author: tmcw -->
Activates the rule, if [ScaleAndPpi scale] >= minScaleDenominator - 1e-6
Example:
```xml
<Style name="text">
<Rule>
<Filter>[place] = 'city'</Filter>
<MaxScaleDenominator>10000000</MaxScaleDenominator>
<MinScaleDenominator>2000000</MinScaleDenominator>
<TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
</Rule>
</Style>
```
```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
Clone repository
  • A perfect testcase
  • API changes between v2.0 and v2.1
  • API changes between v3.0 and v3.1
  • AWS Lambda
  • About Mapnik
  • AlsoFilter
  • Api changes between v2.1 and v2.2
  • Api changes between v2.2 and v2.3
  • Api changes between v2.3 and v3.0
  • ArchInstallation
  • Aspect Fix Mode
  • Benchmark Notes
  • BoundsClipping
  • BrokenExceptions
  • BuildingSymbolizer
View All Pages