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
  • API changes between v3.0 and v3.1

API changes between v3.0 and v3.1 · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Hide whitespace changes
Inline Side-by-side
API-changes-between-v3.0-and-v3.1.md 0 → 100644
View page @ 8516de00
Compiler must now support c++14 to build Mapnik 3.1.x
## Removed
TODO
## Changed
- PostGIS: Variables in postgis SQL queries must now additionally be wrapped in `!` (refs [#3618](https://github.com/mapnik/mapnik/pull/3618)):
```sql
-- Mapnik 3.0
SELECT ... WHERE trait = @variable
-- Mapnik 3.1
SELECT ... WHERE trait = !@variable!
```
- PostGIS & PGraster: The `table`/`geometry_table`/`raster_table` parameter in XML style must be quoted if it would need quoting in SQL query (for example if it's a reserved word or multiple words; refs [#3618](https://github.com/mapnik/mapnik/pull/3618)):
```xml
<!-- Mapnik 3.0 -->
<Parameter name="geometry_table">rolling stones</Parameter>
<!-- Mapnik 3.1 -->
<Parameter name="geometry_table">"rolling stones"</Parameter>
```
- `load_map()` with `strict=true` throws an exception on duplicate style names (refs [#3770](https://github.com/mapnik/mapnik/pull/3770), [#3917](https://github.com/mapnik/mapnik/pull/3917)).
## Added
- PGraster: Variable interpolation just like PostGIS plugin (refs [#3618](https://github.com/mapnik/mapnik/pull/3618)).
- PostGIS & PGraster: Datasource parameter `application_name` (refs [#3984](https://github.com/mapnik/mapnik/pull/3984)).
- Geobuf input plugin (refs [3715](https://github.com/mapnik/mapnik/pull/3715)).
- Layers can be nested, `comp-op` and `opacity` on Layer level are supported (refs [3474](https://github.com/mapnik/mapnik/pull/3474)).
- `extend` option of TextSymbolizer (refs [3512](https://github.com/mapnik/mapnik/pull/3512)).
- Text simple placement `C` for no displacement (refs [#3596](https://github.com/mapnik/mapnik/pull/3596)).
- `angled-point` placement of MarkersSymbolizer (refs [3782](https://github.com/mapnik/mapnik/pull/3782)).
TODO
\ 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