提交 ce92b48244a0718b297d3fd504017588f3623bca

作者 qingxiongf
1 个父辈 e29530fb

getmap

@@ -52,7 +52,7 @@ namespace DmpWms @@ -52,7 +52,7 @@ namespace DmpWms
52 } 52 }
53 else if(boost::iequals(request,"thumbnail")) 53 else if(boost::iequals(request,"thumbnail"))
54 { 54 {
55 - writeThumbnail(context,params, project); 55 + // writeThumbnail(context,params, project);
56 } 56 }
57 else if(boost::iequals(request, "getfeatureinfo")) 57 else if(boost::iequals(request, "getfeatureinfo"))
58 { 58 {
@@ -67,10 +67,10 @@ namespace DmpWms @@ -67,10 +67,10 @@ namespace DmpWms
67 } 67 }
68 68
69 boost::property_tree::ptree ptService; 69 boost::property_tree::ptree ptService;
70 - ptService.add("Name", project->name());  
71 - ptService.add("Title", project->title()==""? project->name(): project->title()); 70 + ptService.add("Name", "project_name");
  71 + ptService.add("Title", "project_title"==""? "project_name": "project_title");
72 ptService.add("Abstract", "dmap wms service"); 72 ptService.add("Abstract", "dmap wms service");
73 - ptService.add("Keywords", "WMS,DMAP," + project->name()); 73 + ptService.add("Keywords", "WMS,DMAP");
74 ptService.add("OnlineResource", hrefUrl); 74 ptService.add("OnlineResource", hrefUrl);
75 ptService.add("Fees","none"); 75 ptService.add("Fees","none");
76 ptService.add("AccessConstraints","none"); 76 ptService.add("AccessConstraints","none");
@@ -148,8 +148,8 @@ namespace DmpWms @@ -148,8 +148,8 @@ namespace DmpWms
148 148
149 boost::property_tree::ptree ptProject; 149 boost::property_tree::ptree ptProject;
150 // ptProject.add("<xmlattr>.queryable","1"); 150 // ptProject.add("<xmlattr>.queryable","1");
151 - ptProject.add("Name", project->name());  
152 - ptProject.add("Title", project->title()==""? project->name(): project->title()); 151 + ptProject.add("Name", "project_name");
  152 + ptProject.add("Title", "project_title"==""? "project_name": "project_title");
153 ptProject.add("CRS", srs); 153 ptProject.add("CRS", srs);
154 154
155 155
@@ -91,7 +91,7 @@ namespace DmpWms @@ -91,7 +91,7 @@ namespace DmpWms
91 return e.what(); 91 return e.what();
92 } 92 }
93 } 93 }
94 - 94 +/*
95 void writeThumbnail(const DmpServerContext &context,const DmpWmsParameters& params, 95 void writeThumbnail(const DmpServerContext &context,const DmpWmsParameters& params,
96 const DmpProject* project,bool projectSettings = false) 96 const DmpProject* project,bool projectSettings = false)
97 { 97 {
@@ -126,7 +126,7 @@ namespace DmpWms @@ -126,7 +126,7 @@ namespace DmpWms
126 return e.what(); 126 return e.what();
127 } 127 }
128 } 128 }
129 - 129 +*/
130 130
131 131
132 int StrDefs2Map(std::map<std::string,std::string>& mapDefs,std::string& strDefs) 132 int StrDefs2Map(std::map<std::string,std::string>& mapDefs,std::string& strDefs)
@@ -28,8 +28,8 @@ namespace DmpWms @@ -28,8 +28,8 @@ namespace DmpWms
28 const DmpProject* project, 28 const DmpProject* project,
29 bool projectSettings = false ); 29 bool projectSettings = false );
30 30
31 - void writeThumbnail(const DmpServerContext &context,const DmpWmsParameters& params,  
32 - const DmpProject* project,bool projectSettings = false); 31 + // void writeThumbnail(const DmpServerContext &context,const DmpWmsParameters& params,
  32 + // const DmpProject* project,bool projectSettings = false);
33 33
34 int StrDefs2Map(std::map<std::string,std::string>& mapDefs,std::string& strDefs); 34 int StrDefs2Map(std::map<std::string,std::string>& mapDefs,std::string& strDefs);
35 35
注册登录 后发表评论