Revision 188 trunk/libraries/libWMSv0/src/com/iver/wmsclient/MapQuery.java

View differences:

MapQuery.java
36 36
     */
37 37
    public String getQuery() {
38 38
        String ret = "";
39
        ret = ret + "WMTVER=" + version + "&REQUEST=GetMap&LAYERS=" + layers +
40
            "&STYLES=" + styles + "&SRS=" + SRS + "&BBOX=" + BBOX + "&WIDTH=" +
41
            width + "&HEIGHT=" + height + "&FORMAT=" + format;
39
        ret = ret + "WMTVER=" + version + "&REQUEST=GetMap&";
40
        ret = ret + getPartialQuery();
41
        if (exceptions != null) {
42
            ret += ("&EXCEPTIONS=" + exceptions);
43
        } else {
44
            ret += ("&EXCEPTIONS=XML");
45
        }
42 46

  
47

  
48
        return ret;
49
    }
50

  
51
    /**
52
     * Obtiene la query que se comparte con la petici?n de 
53
     * getFeatureInfo
54
     *
55
     * @return String con la query
56
     */
57
    public String getPartialQuery() {
58
        String ret = "LAYERS=" + layers + "&STYLES=" + styles + "&SRS=" + SRS +
59
            "&BBOX=" + BBOX + "&WIDTH=" + width + "&HEIGHT=" + height +
60
            "&FORMAT=" + format;
61

  
43 62
        if (transparent) {
44 63
            ret += "&TRANSPARENT=TRUE";
45 64
        }
......
48 67
            ret += ("&COLOR=" + BGColor);
49 68
        }
50 69

  
51
        if (exceptions != null) {
52
            ret += ("&EXCEPTIONS=" + exceptions);
53
        } else {
54
            ret += ("&EXCEPTIONS=XML");
55
        }
56

  
57 70
        if (time != null) {
58 71
            ret += ("&TIME=" + time);
59 72
        }

Also available in: Unified diff