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

Expression · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Hide whitespace changes
Inline Side-by-side
Expression.md 0 → 100644
View page @ 8516de00
Mapnik Expressions enable data-driven behavior in Mapnik. They are constructed from strings, can hold any kind of type of data, and are evaluated at render time. They are used by symbolizers like the [[TextSymbolizer]] to dynamically construct text labels for display and they are also the basis for how Mapnik [Filters](Filter) work.
Recently, in Mapnik 2.1, expressions became enabled in the `transform` parser used to apply affine transformations to image and svg symbols. So, now you can not only, for example, rotate symbols with a transform like `transform="rotate(45)"` but the rotation can be data driven like `transform="rotate([field])"`
For more info on the original design see: http://mapnik.org/news/2009/12/08/future_mapnik2/
in the feature,I think the color attribute such as the stroke of
LineSymbolizer, the fill of PolygonSymbolizer, the fill of TextSymbolizer and so on, should also support Expression, this is more useful.
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