Skip to content

Commit 3503cf4

Browse files
committed
Changelog for v1.6
1 parent 002e719 commit 3503cf4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
# Changelog
22

3-
## [unreleased]
3+
## [1.6.0] - 2020-05-22
44

55
### Added
66
- Specify `source_columns: true` for shapefiles to import all attributes
77
- Support creating tiles from shapefiles only (i.e. no .osm.pbf)
88
- `attribute_function` to rewrite shapefile attributes from Lua
99
- Improved diagnostics for invalid multipolygons
1010
- Output shapefile layer names when reading
11+
- Report memory usage in verbose mode
1112

1213
### Changed
1314
- Rewrite OpenMapTiles-compatible processing (@systemed, @sasfeat, @typebrook, @leonardehrenfried)
1415
- `--combine` flag now off by default
1516
- 32-bit ways and 16-bit tile index by default, change with `-DFAT_WAYS -DFAT_TILE_INDEX`
1617
- Use tsl::sparse_map instead of std::unordered_map for ~7% memory saving
18+
- Don't write invalid small polygons
1719
- Speedup for shapefile reading (@TimSC)
1820
- Move to Github Actions instead of Travis (@leonardehrenfried)
1921
- Reduce size of Docker image, use Ubuntu 20.04 (@leonardehrenfried)
20-
- Improve area calculation (@typebrook)
22+
- Improve area and length calculation (@typebrook, @systemed)
23+
- Overwrite existing .mbtiles file by default
2124

2225
### Fixed
2326
- CMake build fixed (@ogre)

CONFIGURATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ To do that, you use these methods:
124124
* `node:Find(key)` or `way:Find(key)`: get the value for a tag, or the empty string if not present. For example, `way:Find("railway")` might return "rail" for a railway, "siding" for a siding, or "" if it isn't a railway at all.
125125
* `node:Holds(key)` or `way:Holds(key)`: returns true if that key exists, false otherwise.
126126
* `node:Id()` or `way:Id()`: get the OSM ID of the current object.
127+
* `way:Length()` and `way:Area()`: return the length (metres)/area (square metres) of the current object. Requires recent Boost.
127128
* `node:Layer("layer_name", false)` or `way:Layer("layer_name", is_area)`: write this node/way to the named layer. This is how you put objects in your vector tile. is_area (true/false) specifies whether a way should be treated as an area, or just as a linestring.
128129
* `way:LayerAsCentroid("layer_name")`: write a single centroid point for this way to the named layer (useful for labels and POIs).
129130
* `node:Attribute(key,value)` or `node:Attribute(key,value)`: add an attribute to the most recently written layer.

0 commit comments

Comments
 (0)