2020-12-15 14:25:09 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* 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>
|
|
|
|
|
2021-01-27 23:41:22 +01:00
|
|
|
#include <pdal/PointLayout.hpp>
|
2020-12-15 14:25:09 +01:00
|
|
|
#include <pdal/SpatialReference.hpp>
|
|
|
|
|
|
|
|
#include "EpfTypes.hpp"
|
|
|
|
#include "Grid.hpp"
|
|
|
|
#include "../untwine/ProgressWriter.hpp"
|
2020-12-22 18:49:41 +01:00
|
|
|
#include "../untwine/ThreadPool.hpp"
|
2020-12-15 14:25:09 +01:00
|
|
|
|
|
|
|
namespace untwine
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Options;
|
|
|
|
class ProgressWriter;
|
|
|
|
|
|
|
|
namespace epf
|
|
|
|
{
|
|
|
|
|
|
|
|
struct FileInfo;
|
|
|
|
class Writer;
|
|
|
|
|
|
|
|
class Epf
|
|
|
|
{
|
|
|
|
public:
|
2021-01-27 23:41:22 +01:00
|
|
|
Epf(BaseInfo& common);
|
2020-12-15 14:25:09 +01:00
|
|
|
~Epf();
|
|
|
|
|
2022-03-22 21:29:43 +01:00
|
|
|
void run(ProgressWriter& progress);
|
2020-12-15 14:25:09 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
PointCount createFileInfo(const StringList& input, StringList dimNames,
|
|
|
|
std::vector<FileInfo>& fileInfos);
|
2021-01-27 23:41:22 +01:00
|
|
|
void fillMetadata(const pdal::PointLayoutPtr layout);
|
2020-12-15 14:25:09 +01:00
|
|
|
|
2021-01-27 23:41:22 +01:00
|
|
|
BaseInfo& m_b;
|
2020-12-15 14:25:09 +01:00
|
|
|
Grid m_grid;
|
|
|
|
std::unique_ptr<Writer> m_writer;
|
2020-12-22 18:49:41 +01:00
|
|
|
ThreadPool m_pool;
|
2020-12-15 14:25:09 +01:00
|
|
|
FileInfo m_srsFileInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace epf
|
|
|
|
} // namespace untwine
|