mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-25 15:23:52 +00:00
@@ -1,6 +1,6 @@
|
||||
#include "editor/xml_feature.hpp"
|
||||
|
||||
//#include "editor/feature_type_to_osm.hpp"
|
||||
#include "editor/feature_type_to_osm.hpp"
|
||||
#include "editor/keys_to_remove.hpp"
|
||||
|
||||
#include "indexer/classificator.hpp"
|
||||
@@ -642,6 +642,14 @@ void XMLFeature::RemoveTag(string_view key)
|
||||
|
||||
void XMLFeature::SetOSMTagsForType(uint32_t type)
|
||||
{
|
||||
TypeToOSMTranslator translator = getOSMTranslator();
|
||||
|
||||
auto result = translator.osmTagsFromType(type);
|
||||
|
||||
ASSERT(!result.empty(), ());
|
||||
ASSERT_EQUAL(result[0].key, "amenity", ());
|
||||
ASSERT_EQUAL(result[0].value, "restaurant", ());
|
||||
|
||||
if (ftypes::IsRecyclingCentreChecker::Instance()(type))
|
||||
{
|
||||
SetTagValue("amenity", "recycling");
|
||||
|
||||
Reference in New Issue
Block a user