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

Function BookmarkDataToString

libs/kml/pykmlib/bindings.cpp:399–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399std::string BookmarkDataToString(BookmarkData const & bm)
400{
401 std::ostringstream out;
402 ms::LatLon const latLon(mercator::YToLat(bm.m_point.y), mercator::XToLon(bm.m_point.x));
403 out << "["
404 << "name:" << LocalizableStringAdapter::ToString(bm.m_name) << ", "
405 << "description:" << LocalizableStringAdapter::ToString(bm.m_description) << ", "
406 << "feature_types:" << VectorAdapter<uint32_t>::ToString(bm.m_featureTypes) << ", "
407 << "custom_name:" << LocalizableStringAdapter::ToString(bm.m_customName) << ", "
408 << "color:" << ColorDataToString(bm.m_color) << ", "
409 << "icon:" << BookmarkIconToString(bm.m_icon) << ", "
410 << "viewport_scale:" << static_cast<uint32_t>(bm.m_viewportScale) << ", "
411 << "timestamp:" << DebugPrint(bm.m_timestamp) << ", "
412 << "point:" << LatLonToString(latLon) << ", "
413 << "bound_tracks:" << VectorAdapter<uint8_t>::ToString(bm.m_boundTracks) << ", "
414 << "visible:" << (bm.m_visible ? "True" : "False") << ", "
415 << "nearest_toponym:'" << bm.m_nearestToponym << "', "
416 << "compilations:" << VectorAdapter<uint64_t>::ToString(bm.m_compilations) << ", "
417 << "properties:" << PropertiesAdapter::ToString(bm.m_properties) << "]";
418 return out.str();
419}
420
421std::string TrackLayerToString(TrackLayer const & trackLayer)
422{

Callers 1

PrintTypeMethod · 0.85

Calls 7

YToLatFunction · 0.85
XToLonFunction · 0.85
ColorDataToStringFunction · 0.85
BookmarkIconToStringFunction · 0.85
LatLonToStringFunction · 0.70
ToStringFunction · 0.50
DebugPrintFunction · 0.50

Tested by

no test coverage detected