Revision 3523 trunk/libraries/libRemoteServices/src/org/gvsig/remoteClient/wms/WMSLayer.java

View differences:

WMSLayer.java
18 18
public abstract class WMSLayer implements org.gvsig.remoteClient.ILayer {
19 19
    
20 20
    protected ArrayList children;
21
    protected WMSLayer1_1_1 parent;
21
    protected WMSLayer parent;
22 22
    
23 23
    /**
24 24
     * <p>Layer Abstract field in the capabilities document </p> 
......
48 48
    /**
49 49
     * <p>extents for each srs the layer can be reproyected to</p>
50 50
     */
51
    private Hashtable bBoxes = new Hashtable();
51
    private Hashtable bBoxes  = new Hashtable();
52 52
    
53 53
    /**
54 54
     * <p>extents that defines the bbox for the LatLon projection
......
108 108
     * <p>Adds a bbox to the Bboxes vector</p>
109 109
     * @param bbox
110 110
     */
111
    public void addBBox(BoundaryBox bbox) {        
111
    public void addBBox(BoundaryBox bbox) {
112 112
        bBoxes.put(bbox.getSrs(), bbox);
113 113
    } 
114 114
    
......
116 116
     * <p>returns the bbox with that id in the Bboxes vector</p> 
117 117
     * @param id 
118 118
     */
119
    public BoundaryBox getBbox(String id) {                    
119
    public BoundaryBox getBbox(String id) {
120
        BoundaryBox b = (BoundaryBox) bBoxes.get(id);
121
        if (b == null && parent!=null)
122
            return parent.getBbox(id);
120 123
        return (BoundaryBox)bBoxes.get(id);
121 124
    } 
122 125
    
......
124 127
     * <p>Gets the bBoxes vector</p> 
125 128
     * @return 
126 129
     */
127
    public Hashtable getBboxes() {        
130
    public Hashtable getBboxes() {
128 131
        return bBoxes;
129 132
    } 
130 133
    
......
266 269
    }
267 270
    
268 271
    
269
    public WMSLayer1_1_1 getParent() {
272
    public WMSLayer getParent() {
270 273
        return parent;
271 274
    }
272 275
    

Also available in: Unified diff