正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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 | } |
请
注册
或
登录
后发表评论