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

Function GetMatchingFeatureFromOSM

libs/editor/osm_editor.cpp:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105XMLFeature GetMatchingFeatureFromOSM(osm::ChangesetWrapper & cw, osm::EditableMapObject const & o)
106{
107 ASSERT_NOT_EQUAL(o.GetGeomType(), feature::GeomType::Line, ("Line features are not supported yet."));
108 if (o.GetGeomType() == feature::GeomType::Point)
109 return cw.GetMatchingNodeFeatureFromOSM(o.GetMercator());
110
111 auto const & geometry = o.GetTriangesAsPoints();
112
113 ASSERT_GREATER_OR_EQUAL(geometry.size(), 3, ("Is it an area feature?"));
114
115 return cw.GetMatchingAreaFeatureFromOSM(geometry);
116}
117
118uint64_t GetMwmCreationTimeByMwmId(MwmSet::MwmId const & mwmId)
119{

Callers 1

UploadChangesMethod · 0.85

Calls 4

GetGeomTypeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected