61 lines
1.6 KiB
C++
Raw Normal View History

/*****************************************************************************
* 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