QGIS/external/untwine/bu/BuPyramid.hpp
Martin Dobias 70dd22392d [untwine] Fix precision issues when indexing
Offset and scale of X/Y/Z dimensions were not written and
some datasets would simply fail to get indexed completely.
Other datasets may have had the data slightly misaligned
after indexing.

References:
https://github.com/hobu/untwine/issues/28
https://github.com/hobu/untwine/issues/46
2021-01-28 16:02:12 +10:00

57 lines
1.5 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 <string>
#include <unordered_map>
#include <vector>
#include "PyramidManager.hpp"
namespace pdal
{
class ProgramArgs;
}
namespace untwine
{
struct Options;
class ProgressWriter;
namespace bu
{
class FileInfo;
class BuPyramid
{
public:
BuPyramid(BaseInfo& common);
void run(const Options& options, ProgressWriter& progress);
private:
void getInputFiles();
void readBaseInfo();
size_t queueWork();
void writeInfo();
BaseInfo m_b;
PyramidManager m_manager;
std::unordered_map<VoxelKey, FileInfo> m_allFiles;
};
} // namespace bu
} // namespace untwine