MCPcopy Create free account
hub / github.com/PDAL/PDAL / fromString

Function fromString

pdal/util/Bounds.hpp:737–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735 // Catch exceptions that might be thrown by native BOX2D parsing.
736 template<>
737 inline StatusWithReason fromString(const std::string& s, BOX2D& bounds)
738 {
739 try
740 {
741 Utils::IStringStreamClassicLocale iss(s);
742 iss >> bounds;
743 }
744 catch (BOX2D::error& error)
745 {
746 std::string msg = "Error parsing '" + s + "': " + error.what();
747 return StatusWithReason(-1, msg);
748 }
749 return true;
750 }
751
752 // Catch exceptions that might be thrown by native BOX3D parsing.
753 template<>

Callers

nothing calls this directly

Calls 2

StatusWithReasonClass · 0.85
whatMethod · 0.45

Tested by

no test coverage detected