ran generator tool, added debug commands

This commit is contained in:
IsiGebauer 2024-12-17 11:54:51 +01:00
parent ddbf1d9c89
commit c0ad06e6a3
3 changed files with 32 additions and 8 deletions

View file

@ -55,7 +55,6 @@ std::string JoinPath(std::string const & folder, Args &&... args)
template <typename... Args>
std::string JoinPath(std::string const & dir, std::string const & fileOrDir, Args &&... args)
{
//ASSERT(!dir.empty(), ("JoinPath dir is empty: " + dir));
ASSERT(!fileOrDir.empty(), ("JoinPath fileOrDir is empty" + fileOrDir));
return impl::JoinPath(dir, fileOrDir, std::forward<Args>(args)...);
}

View file

@ -321,6 +321,27 @@ void RuleDrawer::ProcessLineStyle(FeatureType & f, Stylist const & s, TInsertSha
ApplyLineFeatureGeometry applyGeom(m_context->GetTileKey(), insertShape, f, m_currentScaleGtoP);
f.ForEachPoint(applyGeom, m_zoomLevel);
int a = 10;
if(f.DebugString().find("cycleway") != std::string::npos && f.DebugString().find("nocycleway") == std::string::npos)
{
if(f.DebugString().find("easy") != std::string::npos)
{
std::cout<<f.DebugString()<< std::endl;
}
if(f.DebugString().find("intermediate") != std::string::npos)
{
std::cout<<f.DebugString() <<std::endl;
}
if(f.DebugString().find("expert") != std::string::npos)
{
std::cout<<f.DebugString() <<std::endl;
}
if(f.DebugString().find("difficult") != std::string::npos)
{
std::cout<<f.DebugString()<< std::endl;
}
}
if (applyGeom.HasGeometry())
applyGeom.ProcessLineRules(s.m_lineRules);

View file

@ -72,7 +72,7 @@ DEFINE_bool(fail_on_coasts, false,
DEFINE_bool(emit_coasts, false,
"Push coasts features from intermediate file to out files/countries.");
#define DEBUG_GENERATOR true
#define DEBUG_GENERATOR false
#if DEBUG_GENERATOR
/*
@ -106,15 +106,19 @@ DEFINE_bool(emit_coasts, false,
#define Debug_generate_packed_borders false
#define Debug_Preprocess false
#define Debug_data_path std::string("/home/emanuel/Documents/work/organicmaps/../maps_build/2024_12_13__14_33_21/241213")
#define Debug_intermediate_data_path std::string("/home/emanuel/Documents/work/organicmaps/../maps_build/2024_12_13__14_33_21/intermediate_data")
#define Debug_cache_path std::string("/home/emanuel/Documents/work/organicmaps/../maps_build/2024_12_13__14_33_21/intermediate_data")
#define Debug_data_path std::string("/home/emanuel/Documents/work/organicmaps/../maps_build/2024_12_15__17_11_06/intermediate_data")
#define Debug_intermediate_data_path std::string("/home/emanuel/Documents/work/organicmaps/../maps_build/2024_12_15__17_11_06/intermediate_data")
#define Debug_cache_path std::string("/home/emanuel/Documents/work/organicmaps/../maps_build/2024_12_15__17_11_06/intermediate_data")
#define Debug_user_resource_path std::string("/home/emanuel/Documents/work/organicmaps/data")
#define Debug_osm_file_type std::string("o5m")
#define Debug_osm_file_name std::string("/home/emanuel/Documents/work/organicmaps/../maps_build/2024_12_15__17_11_06/planet.o5m")
#define Debug_node_storage std::string("map")
#define Debug_user_resource_path std::string("/home/emanuel/Documents/work/organicmaps/data")
#define Debug_Preprocess true
#define Debug_PlanetVersion 1734096801
#define Debug_GenerateGeometry true
#define Debug_GenerateSearchIndex true
#define Debug_Output std::string("Germany_Free State of Bavaria_Upper Bavaria_South")
#define Debug_GenerateGeometry false
#define Debug_GenerateSearchIndex false
#define Debug_Output ""
#else
#define Debug_data_path ""
#define Debug_intermediate_data_path ""