Skip to content

Compare: Api changes between v2.1 and v2.2

Showing with 31 additions and 1 deletion.
  1. +1 −1 Api-changes-between-v2.1-and-v2.2.md
  2. +30 −0 Scale-factor.md
2 changes: 1 addition & 1 deletion Api-changes-between-v2.1-and-v2.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
- Removed the `bind` option for datasources (#1654)

## Changed
- `<Filter>[attr] != ''</Filter>` now matches only empty strings. This syntax previously matched both empty strings and nulls but this behavior was unintended and buggy given that Mapnik has supported a `null` type since 2.0.0. If you wish to filter out all `attr` values that are not `empty strings` or `null` or `false boolean type` then you can do `<Filter>[attr]</Filter>` or `<Filter>[attr] != '' and [attr] != null and [attr] != false</Filter>`
- Proj4 init errors due to invalid `srs` values will now cause exceptions when a map is loaded from XML as well as when encountered during rendering. The latter will very unlikely happen now that validation is done at map loading time. Previously errors were not reported except at render time and only as warnings printed to stderr (#646)
- <strike>`<Filter>[attr] != ''</Filter>` now matches only empty strings. This syntax previously matched both empty strings and nulls but this behavior was unintended and buggy given that Mapnik has supported a `null` type since 2.0.0. If you wish to filter out all `attr` values that are not `empty strings` or `null` or `false boolean type` then you can do `<Filter>[attr]</Filter>` or `<Filter>[attr] != '' and [attr] != null and [attr] != false</Filter>`</strike> No longer the case for 2.2 release, due to backwards compatibility fix as per https://github.com/mapnik/mapnik/issues/1859

## Added
- Added Logging framework documentation synced with 2.2 status: https://github.com/mapnik/mapnik/wiki/Logging
Expand Down