提交 21e87b7aaf0748e5c2280f9d012427775d2eb25e

作者 qingxiongf
1 个父辈 e1285555

3.0能力文档

@@ -33,11 +33,12 @@ namespace DmpWms @@ -33,11 +33,12 @@ namespace DmpWms
33 double boxX1, boxY1, boxX2, boxY2; 33 double boxX1, boxY1, boxX2, boxY2;
34 std::string srs = params.Srs(); 34 std::string srs = params.Srs();
35 std::string recbox = params.BBox(); 35 std::string recbox = params.BBox();
  36 + std::string version = params.Version();
36 37
37 int width = params.Width(); 38 int width = params.Width();
38 int height = params.Height(); 39 int height = params.Height();
39 40
40 - if (boost::iequals(srs, "CRS:84") || boost::iequals(srs, "EPSG:4326")) 41 + if (!srs.empty()&& boost::iequals(version, "1.3.0"))
41 { 42 {
42 sscanf(recbox.c_str(), "%lf,%lf,%lf,%lf", &boxY1, &boxX1, &boxY2, &boxX2); 43 sscanf(recbox.c_str(), "%lf,%lf,%lf,%lf", &boxY1, &boxX1, &boxY2, &boxX2);
43 } 44 }
注册登录 后发表评论