From 60da9f99387bf0797f7279b3af34398954ffadc8 Mon Sep 17 00:00:00 2001 From: kylemann16 Date: Wed, 29 May 2019 16:14:20 -0500 Subject: [PATCH] Change json lookups to m_info.at(key) --- io/private/EptSupport.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/io/private/EptSupport.cpp b/io/private/EptSupport.cpp index 80b4c66c26..ceacb13d85 100644 --- a/io/private/EptSupport.cpp +++ b/io/private/EptSupport.cpp @@ -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(); - m_span = m_info["span"].get(); + m_bounds = toBox3d(m_info.at("bounds")); + m_points = m_info.at("points").get(); + m_span = m_info.at("span").get(); auto iSrs = m_info.find("srs"); if (iSrs != m_info.end() && iSrs->size()) @@ -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(); + const std::string dt = m_info.at("dataType").get(); if (dt == "laszip") m_dataType = DataType::Laszip; else if (dt == "binary")