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")