| 749 | } |
| 750 | |
| 751 | std::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 | |
| 768 | namespace serialization_policy |
| 769 | { |
no test coverage detected