diff options
author | Alex Zolotarev <alex@maps.me> | 2016-03-29 13:04:26 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2016-03-29 19:22:39 +0300 |
commit | e4a7e652bb5f7482c8f22cc62c42128089b7fba3 (patch) | |
tree | 961a7444ab68698ef6b21417176e61aa35792642 /indexer/feature.hpp | |
parent | 784231c291b094b4b6abb9efa4fe31a84d9108aa (diff) |
[editor] Do not overwrite OSM type when feature is modified (not created by user).
Diffstat (limited to 'indexer/feature.hpp')
-rw-r--r-- | indexer/feature.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/feature.hpp b/indexer/feature.hpp index 495bbeb97e..d25a1d287a 100644 --- a/indexer/feature.hpp +++ b/indexer/feature.hpp @@ -170,7 +170,10 @@ public: /// Replaces all FeatureType's components. void ReplaceBy(osm::EditableMapObject const & ef); - editor::XMLFeature ToXML() const; + /// @param serializeType if false, types are not serialized. + /// Useful for applying modifications to existing OSM features, to avoid ussues when someone + /// has changed a type in OSM, but our users uploaded invalid outdated type after modifying feature. + editor::XMLFeature ToXML(bool serializeType) const; /// Creates new feature, including geometry and types. /// @Note: only nodes (points) are supported at the moment. bool FromXML(editor::XMLFeature const & xml); |