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

Method GetGeometry

libs/editor/xml_feature.cpp:210–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210std::vector<m2::PointD> XMLFeature::GetGeometry() const
211{
212 ASSERT_NOT_EQUAL(GetType(), Type::Unknown, ());
213 ASSERT_NOT_EQUAL(GetType(), Type::Node, ());
214 std::vector<m2::PointD> geometry;
215 for (auto const & xCenter : GetRootNode().select_nodes("nd"))
216 {
217 ASSERT(xCenter.node(), ("no nd attribute."));
218 geometry.emplace_back(GetMercatorPointFromNode(xCenter.node()));
219 }
220 return geometry;
221}
222
223string XMLFeature::GetName(std::string_view lang) const
224{

Callers 2

UNIT_TESTFunction · 0.45

Calls 4

ASSERTFunction · 0.85
GetMercatorPointFromNodeFunction · 0.85
GetTypeFunction · 0.50
emplace_backMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36