提交 0f44a12313fef9fa0c3cba8054f26222fcbe56b4

作者 WZP 万忠平
1 个父辈 1616309c

wzp

@@ -86,21 +86,6 @@ void DmpMainServer::HandleRequest(DmpServerRequest &request, DmpServerResponse & @@ -86,21 +86,6 @@ void DmpMainServer::HandleRequest(DmpServerRequest &request, DmpServerResponse &
86 } 86 }
87 // const DmpServerParameters params = request.serverParameters(); 87 // const DmpServerParameters params = request.serverParameters();
88 std::shared_ptr<DmpServerApi> api = nullptr; 88 std::shared_ptr<DmpServerApi> api = nullptr;
89 - // if (params.Service().empty())  
90 - // {  
91 - // if (api = serverManager_->apiForRequest(request))  
92 - // {  
93 - // DmpServerApiContext context{&request, &responseDecorator, serverManager_};  
94 - // api->executeRequest(context);  
95 - // }  
96 - // else  
97 - // {  
98 - // LOGGER_DEBUG("DmpMainServer: getCapabilities");  
99 - // std::string capsJson = serverManager_->getCapabilities();  
100 - // response.writeJson(capsJson);  
101 - // }  
102 - // }  
103 -  
104 std::shared_ptr<DmpServer> server = serverManager_->serverForRequest(request); 89 std::shared_ptr<DmpServer> server = serverManager_->serverForRequest(request);
105 if (server) 90 if (server)
106 { 91 {
@@ -69,7 +69,6 @@ void DmpTileServer::executeRequest(DmpServerRequest &request, DmpServerResponse @@ -69,7 +69,6 @@ void DmpTileServer::executeRequest(DmpServerRequest &request, DmpServerResponse
69 std::string queryString = what[3].str(); 69 std::string queryString = what[3].str();
70 request.setQuery(queryString); 70 request.setQuery(queryString);
71 } 71 }
72 - std::string queryString = what[3].str();  
73 DmpService *service = services_[serverType]; 72 DmpService *service = services_[serverType];
74 if(service) { 73 if(service) {
75 DmpServerProject * serverProj = getServerProject(serviceName); 74 DmpServerProject * serverProj = getServerProject(serviceName);
@@ -28,7 +28,6 @@ namespace DmpWmts @@ -28,7 +28,6 @@ namespace DmpWmts
28 //restful风格的path,例如:/10/12/13.png;/1.0.0/WMTSCapabilities.xml 28 //restful风格的path,例如:/10/12/13.png;/1.0.0/WMTSCapabilities.xml
29 DmpWmtsParameters::DmpWmtsParameters(const std::string &path) 29 DmpWmtsParameters::DmpWmtsParameters(const std::string &path)
30 { 30 {
31 - // params_ = params.parameters();  
32 std::vector<std::string> vec; 31 std::vector<std::string> vec;
33 boost::split(vec, path, boost::is_any_of("/"), boost::token_compress_on); 32 boost::split(vec, path, boost::is_any_of("/"), boost::token_compress_on);
34 std::string last = vec.back(); 33 std::string last = vec.back();
@@ -46,7 +45,6 @@ namespace DmpWmts @@ -46,7 +45,6 @@ namespace DmpWmts
46 add("FORMAT", vec2[1]); 45 add("FORMAT", vec2[1]);
47 } 46 }
48 } 47 }
49 -  
50 } 48 }
51 49
52 int DmpWmtsParameters::TileMatrix() const 50 int DmpWmtsParameters::TileMatrix() const
注册登录 后发表评论