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

Method parse

pdal/SrsBounds.cpp:79–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79void SrsBounds::parse(const std::string& s, std::string::size_type& pos)
80{
81 Bounds::parse(s, pos);
82 pos += Utils::extractSpaces(s, pos);
83 m_srs.set(to2d().wkt);
84 if (pos == s.size())
85 return;
86
87 if (s[pos++] != '/')
88 throw Bounds::error("Invalid character following valid bounds box.");
89
90 pos += Utils::extractSpaces(s, pos);
91 SpatialReference srs;
92 m_srs.parse(s, pos);
93 pos += Utils::extractSpaces(s, pos);
94}
95
96std::ostream& operator << (std::ostream& out, const SrsBounds& srsBounds)
97{

Callers

nothing calls this directly

Calls 5

to2dFunction · 0.85
parseFunction · 0.70
errorClass · 0.50
setMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected