Revision 39403
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wms/wms_1_3_0/request/WMSGetFeatureInfoRequest1_1_3.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
package org.gvsig.remoteclient.wms.wms_1_3_0.request; |
29 | 29 |
|
30 |
import java.util.Vector; |
|
31 |
|
|
30 | 32 |
import org.gvsig.compat.CompatLocator; |
31 | 33 |
import org.gvsig.compat.lang.StringUtils; |
32 | 34 |
import org.gvsig.remoteclient.utils.CapabilitiesTags; |
... | ... | |
65 | 67 |
} |
66 | 68 |
|
67 | 69 |
/** |
70 |
* Gets the part of the OGC request that share GetMap and GetFeatureInfo |
|
71 |
* @return String request |
|
72 |
*/ |
|
73 |
protected String getPartialQuery(WMSStatus status) { |
|
74 |
StringBuffer req = new StringBuffer(); |
|
75 |
req.append("LAYERS=" + Utilities.Vector2CS(status.getLayerNames())) |
|
76 |
.append("&CRS=" + status.getSrs()) |
|
77 |
.append("&BBOX=" + status.getExtent().getMinX()+ "," ) |
|
78 |
.append(status.getExtent().getMinY()+ ",") |
|
79 |
.append(status.getExtent().getMaxX()+ ",") |
|
80 |
.append(status.getExtent().getMaxY()) |
|
81 |
.append("&WIDTH=" + status.getWidth()) |
|
82 |
.append("&HEIGHT=" + status.getHeight()) |
|
83 |
.append("&FORMAT=" + status.getFormat()) |
|
84 |
.append("&STYLES="); |
|
85 |
Vector v = status.getStyles(); |
|
86 |
if (v!=null && v.size()>0) |
|
87 |
req.append(Utilities.Vector2CS(v)); |
|
88 |
v = status.getDimensions(); |
|
89 |
if (v!=null && v.size()>0) |
|
90 |
req.append("&" + Utilities.Vector2URLParamString(v)); |
|
91 |
if (status.getTransparency()) { |
|
92 |
req.append("&TRANSPARENT=TRUE"); |
|
93 |
} |
|
94 |
return req.toString(); |
|
95 |
} |
|
96 |
|
|
97 |
/** |
|
68 | 98 |
* @return the exceptions format |
69 | 99 |
*/ |
70 | 100 |
protected String getExceptionsFormat(){ |
Also available in: Unified diff