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
  • SymbologySupport

SymbologySupport · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Show whitespace changes
Inline Side-by-side
SymbologySupport.md 0 → 100644
View page @ 8516de00
# Symbology Support
Also see [[XMLConfigReference]] for descriptions of these elements within the xml mapfile.
## Styles
Named styles, each layer can reference 0...N styles.
Order is important -- as in the 'painter model' or [Painter's algorithm](http://en.wikipedia.org/wiki/Painter's_algorithm) to be specific. Layers that are declared first in your XML file, or added programmatically through Layer::add_style are drawn first. Layers that are declared or added later are drawn last.
## Rules
Each style can have 0...N rules. Rules can have min/max scale denominators <someone explain min/max denom here!> and filter expressions.
## Filters
Syntax for filter expressions is very simple, you enclose variables (evaluated at runtime) in square brackets: `[attribute_name]`.
Support for:
* Arithmetic: `+`, `-`, `*`, `/`
* Comparison: `>`, `<`, `=`, `<>`, `>=`, `<=`
* Logical operators: `and`, `or`, `not`
* Regular expression matching: `[attribute_name].match('reg_ex')`
See [[Filter]] for more details (especially regarding how this is different for XML).
## Symbolizers
Symbolizers describe how features appear on a map.
* [[BuildingSymbolizer]]
* [[GlyphSymbolizer]] (deprecated)
* [[GroupSymbolizer]]
* [[LineSymbolizer]]
* [[LinePatternSymbolizer]]
* [[MarkersSymbolizer]]
* [[PolygonSymbolizer]]
* [[PolygonPatternSymbolizer]]
* [[PointSymbolizer]]
* [[RasterSymbolizer]]
* [[ShieldSymbolizer]]
* [[TextSymbolizer]]
\ 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