MCPcopy Create free account
hub / github.com/comaps/comaps / TypeToXML

Function TypeToXML

libs/editor/xml_feature.cpp:834–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834XMLFeature TypeToXML(uint32_t type, feature::GeomType geomType, m2::PointD mercator)
835{
836 ASSERT(geomType == feature::GeomType::Point, ("Only point features can be added"));
837 XMLFeature toFeature(XMLFeature::Type::Node);
838 toFeature.SetCenter(mercator);
839
840 toFeature.SetOSMTagsForType(type);
841
842 return toFeature;
843}
844
845string DebugPrint(XMLFeature const & feature)
846{

Callers 1

UploadChangesMethod · 0.85

Calls 3

ASSERTFunction · 0.85
SetOSMTagsForTypeMethod · 0.80
SetCenterMethod · 0.45

Tested by

no test coverage detected