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

Function DebugPrint

generator/feature_builder.cpp:751–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749}
750
751std::string DebugPrint(FeatureBuilder const & fb)
752{
753 std::ostringstream out;
754
755 switch (fb.GetGeomType())
756 {
757 case GeomType::Point: out << DebugPrint(fb.GetKeyPoint()); break;
758 case GeomType::Line: out << "line with " << fb.GetPointsCount() << " points"; break;
759 case GeomType::Area: out << "area with " << fb.GetPointsCount() << " points"; break;
760 default: out << "ERROR: unknown geometry type"; break;
761 }
762
763 out << " " << DebugPrint(mercator::ToLatLon(fb.GetLimitRect())) << " " << DebugPrint(fb.GetParams()) << " "
764 << fb.DebugPrintIDs();
765 return out.str();
766}
767
768namespace serialization_policy
769{

Callers 1

DebugPrintIDsMethod · 0.70

Calls 7

GetParamsMethod · 0.80
DebugPrintIDsMethod · 0.80
ToLatLonFunction · 0.70
GetGeomTypeMethod · 0.45
GetKeyPointMethod · 0.45
GetPointsCountMethod · 0.45
GetLimitRectMethod · 0.45

Tested by

no test coverage detected