Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2016-03-29 13:04:26 +0300
committerAlex Zolotarev <alex@maps.me>2016-03-29 19:22:39 +0300
commite4a7e652bb5f7482c8f22cc62c42128089b7fba3 (patch)
tree961a7444ab68698ef6b21417176e61aa35792642 /indexer/feature.hpp
parent784231c291b094b4b6abb9efa4fe31a84d9108aa (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.hpp5
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);