Martin Dobias 1513f0ab93 Upgrade untwine to the latest upstream improvements
We are now using the code from "qgis" branch:
https://github.com/hobu/untwine/tree/qgis
It is in sync with "main" branch of untwine as of today, just with a couple
of small patches to make it work with PDAL older than 2.4.

The new version of untwine includes:
- indexing to COPC (in addition to EPT)
- fixes to bugs that were reported in QGIS
- error reporting

Untwine now also directly links to lazperf library (in addition to PDAL).
2022-03-24 12:06:55 -07:00

61 lines
1.6 KiB
C++

/*****************************************************************************
* Copyright (c) 2020, Hobu, Inc. (info@hobu.co) *
* *
* All rights reserved. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
****************************************************************************/
#pragma once
#include <map>
#include <vector>
#include <pdal/PointLayout.hpp>
#include <pdal/SpatialReference.hpp>
#include "EpfTypes.hpp"
#include "Grid.hpp"
#include "../untwine/ProgressWriter.hpp"
#include "../untwine/ThreadPool.hpp"
namespace untwine
{
struct Options;
class ProgressWriter;
namespace epf
{
struct FileInfo;
class Writer;
class Epf
{
public:
Epf(BaseInfo& common);
~Epf();
void run(ProgressWriter& progress);
private:
PointCount createFileInfo(const StringList& input, StringList dimNames,
std::vector<FileInfo>& fileInfos);
void fillMetadata(const pdal::PointLayoutPtr layout);
BaseInfo& m_b;
Grid m_grid;
std::unique_ptr<Writer> m_writer;
ThreadPool m_pool;
FileInfo m_srsFileInfo;
};
} // namespace epf
} // namespace untwine