From 203b2150931e35a19f69ba4970c7095e6177f00b Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 30 Sep 2013 15:55:29 +0200 Subject: [PATCH] loading correct file with rtree leafs and not inner nodes --- Server/DataStructures/SharedDataFacade.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Server/DataStructures/SharedDataFacade.h b/Server/DataStructures/SharedDataFacade.h index f13e0332f..a3882868c 100644 --- a/Server/DataStructures/SharedDataFacade.h +++ b/Server/DataStructures/SharedDataFacade.h @@ -162,7 +162,7 @@ private: street_names_index_ptr, data_layout->name_index_list_size ); - m_name_begin_indices.swap(m_name_begin_indices); + m_name_begin_indices.swap(name_begin_indices); char * names_list_ptr = (char *)( shared_memory + data_layout->GetNameListOffset() @@ -180,13 +180,13 @@ public: const boost::filesystem::path base_path ) { //check contents of config file - if ( !server_config.Holds("ramIndex") ) { + if ( !server_config.Holds("fileIndex") ) { throw OSRMException("no nodes file name in server ini"); } //generate paths of data files boost::filesystem::path ram_index_path = boost::filesystem::absolute( - server_config.GetParameter("ramIndex"), + server_config.GetParameter("fileIndex"), base_path ); @@ -198,6 +198,8 @@ public: SharedMemoryFactory::Get(DATA_1)->Ptr() ); + data_layout->PrintInformation(); + //load data SimpleLogger().Write() << "loading graph data"; LoadGraph();