Skip to content

Commit

Permalink
Change json lookups to m_info.at(key)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemann16 committed May 29, 2019
1 parent 6ec7a58 commit 60da9f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions io/private/EptSupport.cpp
Expand Up @@ -41,9 +41,9 @@ namespace pdal

EptInfo::EptInfo(const NL::json& info) : m_info(info)
{
m_bounds = toBox3d(m_info["bounds"]);
m_points = m_info["points"].get<uint64_t>();
m_span = m_info["span"].get<uint64_t>();
m_bounds = toBox3d(m_info.at("bounds"));
m_points = m_info.at("points").get<uint64_t>();
m_span = m_info.at("span").get<uint64_t>();

auto iSrs = m_info.find("srs");
if (iSrs != m_info.end() && iSrs->size())
Expand Down Expand Up @@ -101,7 +101,7 @@ EptInfo::EptInfo(const NL::json& info) : m_info(info)
throw ept_error("Invalid/unknown srs.wkt specification.");
}

const std::string dt = m_info["dataType"].get<std::string>();
const std::string dt = m_info.at("dataType").get<std::string>();
if (dt == "laszip")
m_dataType = DataType::Laszip;
else if (dt == "binary")
Expand Down

0 comments on commit 60da9f9

Please sign in to comment.