mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-25 15:23:52 +00:00
@@ -22,3 +22,9 @@ UNIT_TEST(testIfTestRuns)
|
||||
TEST_EQUAL(result.key, "amenity", ());
|
||||
TEST_EQUAL(result.value, "restaurant", ());
|
||||
}
|
||||
|
||||
UNIT_TEST(loadConfigFile)
|
||||
{
|
||||
FeatureTypeToOSM typeToOsm;
|
||||
typeToOsm.loadConfigFile();
|
||||
}
|
||||
|
||||
@@ -2,11 +2,18 @@
|
||||
|
||||
#include "base/logging.hpp"
|
||||
#include "indexer/classificator.hpp"
|
||||
#include "platform/platform.hpp"
|
||||
|
||||
namespace editor
|
||||
{
|
||||
void FeatureTypeToOSM::loadConfigFile() {
|
||||
LOG(LINFO, ("Hello from loadConfigFile"));
|
||||
|
||||
Platform & p = GetPlatform();
|
||||
|
||||
std::unique_ptr<ModelReader> reader = p.GetReader("mapcss-mapping.csv");
|
||||
|
||||
LOG(LINFO, ("File has size ", reader->Size()));
|
||||
}
|
||||
|
||||
std::vector<OSMTag> FeatureTypeToOSM::typeToOSM(uint32_t type)
|
||||
|
||||
Reference in New Issue
Block a user