Files
comaps/generator/final_processor_country.hpp
Konstantin Pastbin e3e4a1985a 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
2025-05-08 21:10:51 +07:00

84 lines
2.0 KiB
C++

#pragma once
#include "generator/affiliation.hpp"
#include "generator/final_processor_interface.hpp"
#include <string>
namespace generator
{
class CountryFinalProcessor : public FinalProcessorIntermediateMwmInterface
{
public:
CountryFinalProcessor(AffiliationInterfacePtr affiliations,
std::string const & temporaryMwmPath, size_t threadsCount);
void SetCoastlines(std::string const & coastlineGeomFilename,
std::string const & worldCoastsFilename)
{
m_coastlineGeomFilename = coastlineGeomFilename;
m_worldCoastsFilename = worldCoastsFilename;
}
void SetFakeNodes(std::string const & filename)
{
m_fakeNodesFilename = filename;
}
void SetMiniRoundabouts(std::string const & filename)
{
m_miniRoundaboutsFilename = filename;
}
void SetAddrInterpolation(std::string const & filename)
{
m_addrInterpolFilename = filename;
}
void SetIsolinesDir(std::string const & dir)
{
m_isolinesPath = dir;
}
void SetAddressesDir(std::string const & dir)
{
m_addressPath = dir;
}
void SetCityBoundariesFiles(std::string const & collectorFile)
{
m_boundariesCollectorFile = collectorFile;
}
// FinalProcessorIntermediateMwmInterface overrides:
void Process() override;
void ProcessBuildingParts();
private:
//void Order();
void ProcessCoastline();
void ProcessRoundabouts();
void AddFakeNodes();
void AddIsolines();
void AddAddresses();
void DropProhibitedSpeedCameras();
//void Finish();
bool IsCountry(std::string const & filename);
std::string m_borderPath;
std::string m_temporaryMwmPath;
std::string m_intermediateDir;
std::string m_isolinesPath, m_addressPath;
std::string m_boundariesCollectorFile;
std::string m_coastlineGeomFilename;
std::string m_worldCoastsFilename;
std::string m_fakeNodesFilename;
std::string m_miniRoundaboutsFilename;
std::string m_addrInterpolFilename;
std::string m_hierarchySrcFilename;
AffiliationInterfacePtr m_affiliations;
size_t m_threadsCount;
};
} // namespace generator