diff --git a/applications/petascope/src/main/java/petascope/wcps/server/core/EncodeDataExpr.java b/applications/petascope/src/main/java/petascope/wcps/server/core/EncodeDataExpr.java
index 066018e..ae0f117 100644
a
|
b
|
import org.w3c.dom.*;
|
28 | 28 | import petascope.core.IDynamicMetadataSource; |
29 | 29 | import petascope.util.WCPSConstants; |
30 | 30 | |
| 31 | import petascope.util.CrsUtil; |
| 32 | |
31 | 33 | // This is the equivalent of the "ProcessingExprType" complex XML type. |
32 | 34 | public class EncodeDataExpr implements IRasNode { |
33 | 35 | |
… |
… |
public class EncodeDataExpr implements IRasNode {
|
118 | 120 | if (extraParams != null) { |
119 | 121 | extraParams = '"' + extraParams + '"'; |
120 | 122 | result = result + ", " + extraParams; |
| 123 | } else if (encode && coverageExprType instanceof CoverageExpr) { |
| 124 | CoverageInfo info = ((CoverageExpr) coverageExprType).getCoverageInfo(); |
| 125 | if (info != null) { |
| 126 | Bbox bbox = info.getBbox(); |
| 127 | if (bbox != null) { |
| 128 | String code = CrsUtil.CrsUri.getCode(info.getBbox().getCrsName()); |
| 129 | String crs = ""; |
| 130 | if (code != null) { |
| 131 | crs = ";crs=EPSG:" + code; |
| 132 | } |
| 133 | extraParams = '"' |
| 134 | + "xmin=" + info.getBbox().getLow1() |
| 135 | + ";ymin=" + info.getBbox().getLow2() |
| 136 | + ";xmax=" + info.getBbox().getHigh1() |
| 137 | + ";ymax=" + info.getBbox().getHigh2() |
| 138 | + crs |
| 139 | + '"'; |
| 140 | result = result + ", " + extraParams; |
| 141 | } |
| 142 | } |
121 | 143 | } |
122 | 144 | |
123 | 145 | result = result + ")"; |