mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
36
generator/final_processor_world.cpp
Normal file
36
generator/final_processor_world.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "generator/final_processor_world.hpp"
|
||||
#include "generator/feature_builder.hpp"
|
||||
#include "generator/final_processor_utils.hpp"
|
||||
|
||||
#include "base/logging.hpp"
|
||||
|
||||
#include "defines.hpp"
|
||||
|
||||
namespace generator
|
||||
{
|
||||
using namespace feature;
|
||||
|
||||
WorldFinalProcessor::WorldFinalProcessor(std::string const & temporaryMwmPath,
|
||||
std::string const & coastlineGeomFilename)
|
||||
: FinalProcessorIntermediateMwmInterface(FinalProcessorPriority::CountriesOrWorld)
|
||||
, m_temporaryMwmPath(temporaryMwmPath)
|
||||
, m_worldTmpFilename(base::JoinPath(m_temporaryMwmPath, WORLD_FILE_NAME) +
|
||||
DATA_FILE_EXTENSION_TMP)
|
||||
, m_coastlineGeomFilename(coastlineGeomFilename)
|
||||
{
|
||||
}
|
||||
|
||||
void WorldFinalProcessor::Process()
|
||||
{
|
||||
auto fbs = ReadAllDatRawFormat<serialization_policy::MaxAccuracy>(m_worldTmpFilename);
|
||||
Order(fbs);
|
||||
WorldGenerator generator(m_worldTmpFilename, m_coastlineGeomFilename, m_popularPlacesFilename);
|
||||
LOG(LINFO, ("Process World features"));
|
||||
for (auto & fb : fbs)
|
||||
generator.Process(fb);
|
||||
|
||||
LOG(LINFO, ("Merge World lines"));
|
||||
generator.DoMerge();
|
||||
}
|
||||
|
||||
} // namespace generator
|
||||
Reference in New Issue
Block a user