From 3503cf4f0d8d2624216749a0810cb80378966f22 Mon Sep 17 00:00:00 2001 From: systemed Date: Fri, 22 May 2020 14:15:25 +0100 Subject: [PATCH] Changelog for v1.6 --- CHANGELOG.md | 7 +++++-- CONFIGURATION.md | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 623c5433..ece193c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [unreleased] +## [1.6.0] - 2020-05-22 ### Added - Specify `source_columns: true` for shapefiles to import all attributes @@ -8,16 +8,19 @@ - `attribute_function` to rewrite shapefile attributes from Lua - Improved diagnostics for invalid multipolygons - Output shapefile layer names when reading +- Report memory usage in verbose mode ### Changed - Rewrite OpenMapTiles-compatible processing (@systemed, @sasfeat, @typebrook, @leonardehrenfried) - `--combine` flag now off by default - 32-bit ways and 16-bit tile index by default, change with `-DFAT_WAYS -DFAT_TILE_INDEX` - Use tsl::sparse_map instead of std::unordered_map for ~7% memory saving +- Don't write invalid small polygons - Speedup for shapefile reading (@TimSC) - Move to Github Actions instead of Travis (@leonardehrenfried) - Reduce size of Docker image, use Ubuntu 20.04 (@leonardehrenfried) -- Improve area calculation (@typebrook) +- Improve area and length calculation (@typebrook, @systemed) +- Overwrite existing .mbtiles file by default ### Fixed - CMake build fixed (@ogre) diff --git a/CONFIGURATION.md b/CONFIGURATION.md index 6fa2f002..832ebe04 100644 --- a/CONFIGURATION.md +++ b/CONFIGURATION.md @@ -124,6 +124,7 @@ To do that, you use these methods: * `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. * `node:Holds(key)` or `way:Holds(key)`: returns true if that key exists, false otherwise. * `node:Id()` or `way:Id()`: get the OSM ID of the current object. +* `way:Length()` and `way:Area()`: return the length (metres)/area (square metres) of the current object. Requires recent Boost. * `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. * `way:LayerAsCentroid("layer_name")`: write a single centroid point for this way to the named layer (useful for labels and POIs). * `node:Attribute(key,value)` or `node:Attribute(key,value)`: add an attribute to the most recently written layer.