[Git][debian-gis-team/osmium-tool][upstream] New upstream version 1.9.1
Bas Couwenberg
gitlab at salsa.debian.org
Sat Aug 18 19:17:14 BST 2018
Bas Couwenberg pushed to branch upstream at Debian GIS Project / osmium-tool
Commits:
0f3ecd40 by Bas Couwenberg at 2018-08-18T18:01:20Z
New upstream version 1.9.1
- - - - -
6 changed files:
- CHANGELOG.md
- CMakeLists.txt
- man/osmium-export.md
- man/osmium-file-formats.md
- src/command_export.cpp
- src/export/ruleset.hpp
Changes:
=====================================
CHANGELOG.md
=====================================
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,18 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Fixed
+## [1.9.1] - 2018-08-18
+
+### Changed
+
+* Improved `export` command man page.
+
+### Fixed
+
+* Regression: Default for `linear_tags` and `area_tags` should be `true`.
+ It was before v1.9.0 and it is documented this way.
+
+
## [1.9.0] - 2018-08-11
### Added
@@ -432,7 +444,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Minor updates to documentation and build system
-[unreleased]: https://github.com/osmcode/osmium-tool/compare/v1.9.0...HEAD
+[unreleased]: https://github.com/osmcode/osmium-tool/compare/v1.9.1...HEAD
+[1.9.1]: https://github.com/osmcode/osmium-tool/compare/v1.9.0...v1.9.1
[1.9.0]: https://github.com/osmcode/osmium-tool/compare/v1.8.0...v1.9.0
[1.8.0]: https://github.com/osmcode/osmium-tool/compare/v1.7.1...v1.8.0
[1.7.1]: https://github.com/osmcode/osmium-tool/compare/v1.7.0...v1.7.1
=====================================
CMakeLists.txt
=====================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ project(osmium)
set(OSMIUM_VERSION_MAJOR 1)
set(OSMIUM_VERSION_MINOR 9)
-set(OSMIUM_VERSION_PATCH 0)
+set(OSMIUM_VERSION_PATCH 1)
set(OSMIUM_VERSION ${OSMIUM_VERSION_MAJOR}.${OSMIUM_VERSION_MINOR}.${OSMIUM_VERSION_PATCH})
=====================================
man/osmium-export.md
=====================================
--- a/man/osmium-export.md
+++ b/man/osmium-export.md
@@ -130,15 +130,39 @@ the following optional names:
* `attributes`: An object specifying which attributes of OSM objects to export.
See the ATTRIBUTES section.
-* `linear_tags`: An array of expressions specifying tags that should be treated
- as linear. See the FILTER EXPRESSION and AREA HANDLING sections.
-* `area_tags`: An array of expressions specifying tags that should be treated
- as area tags. See the FILTER EXPRESSION and AREA HANDLING sections.
+* `linear_tags`: An expression specifying tags that should be treated
+ as linear tags. See below for details and also look at the AREA HANDLING
+ section.
+* `area_tags`: An expression specifying tags that should be treated
+ as area tags. See below for details and also look at the AREA HANDLING
+ section.
* `exclude_tags`: A list of tag expressions. Tags matching these expressions
are excluded from the output. See the FILTER EXPRESSION section.
* `include_tags`: A list of tag expressions. Tags matching these expressions
are included in the output. See the FILTER EXPRESSION section.
+The `area_tags` and `linear_tags` can have the following values:
+
+true
+: All tags match. (An empty list `[]` can also be used to mean the same,
+ but this use is deprecated because it can be confusing.)
+
+false
+: No tags match.
+
+Array
+: The array contains one or more expressions as described in the FILTER
+ EXPRESSION section.
+
+null
+: If the `area_tags` or `linear_tags` is set to null or not set at all,
+ the inverse of the other setting is used. So if you do not set the
+ `linear_tags` but have some expressions in `area_tags`, areas will be
+ created for all objects matching those expressions and linestrings for
+ everything else. This can be simpler, because you only have to keep
+ one list, but in cases where an object can be interpreted as both an
+ area and a linestring, only one interpretation will be used.
+
The `exclude_tags` and `include_tags` options are mutually exclusive. If you
want to just exclude some tags but leave most tags untouched, use the
`exclude_tags` setting. If you only want a defined list of tags, use
@@ -253,28 +277,6 @@ Closed way
important because some objects have tags that make them both, an area and
a linestring.
-The `area_tags` and `linear_tags` can have the following values:
-
-true
-: All tags match. (An empty list `[]` can also be used to mean the same,
- but this use is deprecated because it can be confusing.)
-
-false
-: No tags match.
-
-Array
-: The array contains one or more expressions as descibed in the FILTER
- EXPRESSION section.
-
-null
-: If the `area_tags` or `linear_tags` is set to null or not set at all,
- the inverse of the other setting is used. So if you do not set the
- `linear_tags` but have some expressions in `area_tags`, areas will be
- created for all objects matching those expressions and linestrings for
- everything else. This can be simpler, because you only have to keep
- one list, but in cases where an object can be interpreted as both an
- area and a linestring, only one interpretation will be used.
-
# OUTPUT FORMATS
=====================================
man/osmium-file-formats.md
=====================================
--- a/man/osmium-file-formats.md
+++ b/man/osmium-file-formats.md
@@ -95,7 +95,7 @@ Here are some examples:
: PBF format.
`pbf,add_metadata=false`
-: PBF format, dont' write metadata
+: PBF format, don't write metadata
`osm.bz2`
: XML format, compressed with bzip2.
=====================================
src/command_export.cpp
=====================================
--- a/src/command_export.cpp
+++ b/src/command_export.cpp
@@ -421,7 +421,7 @@ static void print_ruleset(osmium::VerboseOutput& vout, const Ruleset& ruleset) {
print_taglist(vout, ruleset.tags());
break;
case tags_filter_rule_type::other:
- vout << "if area tags don't match\n";
+ vout << "if other tag list doesn't match\n";
break;
}
}
=====================================
src/export/ruleset.hpp
=====================================
--- a/src/export/ruleset.hpp
+++ b/src/export/ruleset.hpp
@@ -17,7 +17,7 @@ enum class tags_filter_rule_type {
class Ruleset {
- tags_filter_rule_type m_type = tags_filter_rule_type::none;
+ tags_filter_rule_type m_type = tags_filter_rule_type::any;
std::vector<std::string> m_tags;
osmium::TagsFilter m_filter{false};
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmium-tool/commit/0f3ecd40ea7d363c6e0d64a00178b72e803568f0
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmium-tool/commit/0f3ecd40ea7d363c6e0d64a00178b72e803568f0
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20180818/3e149200/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list