From ba2859a82bbc8224b4ed8578908a616de89cb3fa Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Mon, 1 Jul 2024 09:41:06 -0400 Subject: [PATCH] Use the LAS reader for input COPC files. Close #168 --- epf/Epf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/epf/Epf.cpp b/epf/Epf.cpp index 3d98a8e..cf52052 100644 --- a/epf/Epf.cpp +++ b/epf/Epf.cpp @@ -281,6 +281,9 @@ void Epf::createFileInfos(const StringList& input, std::vector& fileIn std::string driver = factory.inferReaderDriver(filename); if (driver.empty()) throw FatalError("Can't infer reader for '" + filename + "'."); + // Use LAS reader for COPC files. + if (driver == "readers.copc") + driver = "readers.las"; Stage *s = factory.createStage(driver); pdal::Options opts;