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

Function GetBoundingRect

libs/editor/changeset_wrapper.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace
21{
22m2::RectD GetBoundingRect(std::vector<m2::PointD> const & geometry)
23{
24 m2::RectD rect;
25 for (auto const & p : geometry)
26 {
27 auto const latLon = mercator::ToLatLon(p);
28 rect.Add({latLon.m_lon, latLon.m_lat});
29 }
30 return rect;
31}
32
33bool OsmFeatureHasTags(pugi::xml_node const & osmFt)
34{

Callers 1

Calls 2

ToLatLonFunction · 0.50
AddMethod · 0.45

Tested by

no test coverage detected