Revision 5673 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/layers/FLyrWFS.java

View differences:

FLyrWFS.java
62 62
 *
63 63
 * $Id$
64 64
 * $Log$
65
 * Revision 1.3  2006-05-25 10:31:55  jorpiell
65
 * Revision 1.4  2006-06-05 16:49:31  caballero
66
 * poder editar y exportar
67
 *
68
 * Revision 1.3  2006/05/25 10:31:55  jorpiell
66 69
 * Se ha renombrado la clase WFSFields por WFSAttributes porque era algo confusa
67 70
 *
68 71
 * Revision 1.2  2006/05/23 13:21:59  jorpiell
......
75 78
 */
76 79
/**
77 80
 *  FMap's WFS Layer class.
78
 *  
81
 *
79 82
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
80 83
 */
81 84
public class FLyrWFS extends FLyrVect{
......
92 95
    private VectorialAdapter vectorialAdapter = null;
93 96
    private WFSStrategy wfsStrategy = null;
94 97

  
95
    
98

  
96 99
    /**
97 100
     * Constructor
98 101
     */
99 102
    public FLyrWFS(){
100
    	super();   	
101
    }    
102
    
103
    	super();
104
    }
105

  
103 106
    /**
104 107
     * Loads the features from the server
105 108
     */
......
107 110
    	WFSAdapter adapter = new WFSAdapter();
108 111
    	try {
109 112
    		wfsDriver.getFeature(getWFSStatus());
110
    		
113

  
111 114
    		adapter.setDriver((VectorialDriver) wfsDriver);
112 115
    		setSource(adapter);
113
    		
114
    		
116

  
117

  
115 118
    		setLegend(LegendFactory.createSingleSymbolLegend(
116 119
    				getShapeType()));
117 120
    	} catch (WFSException e) {
......
126 129
    		throw new DriverIOException(e.getMessage());
127 130
    	}
128 131
    }
129
    
132

  
130 133
    /**
131 134
     * Gets the WFS Status
132 135
     * @return
......
141 144
    	status.setOnlineResource(getOnlineResource());
142 145
	   	return status;
143 146
    }
144
 
147

  
145 148
    /**
146 149
     * Adds the vectorial adapter to the layer
147 150
     * @param vectorialAdapter
......
150 153
    	this.vectorialAdapter = vectorialAdapter;
151 154
        super.setSource(vectorialAdapter);
152 155
    }
153
    
156

  
154 157
	/**
155 158
	 * @return Returns the layerName.
156 159
	 */
......
175 178
	public void setNumfeatures(int numfeatures) {
176 179
		this.numfeatures = numfeatures;
177 180
	}
178
	
181

  
179 182
	/**
180 183
	 * @return Returns the pwd.
181 184
	 */
......
218 221
	public WFSAttribute[] getFields() {
219 222
		return fields;
220 223
	}
221
	
224

  
222 225
	/**
223 226
	 * Return the attributes name
224 227
	 * @return
......
230 233
		}
231 234
		return attributes;
232 235
	}
233
	
236

  
234 237
	/**
235 238
	 * @param fields The fields to set.
236 239
	 */
......
259 262
	 * @param host The host to set.
260 263
	 */
261 264
	public void setHost(URL host) {
262
		this.host = host;		
265
		this.host = host;
263 266
	}
264 267

  
265 268
	/**
......
275 278
	public void setWfsDriver(FMapWFSDriver wfs) {
276 279
		this.wfsDriver = wfs;
277 280
	}
278
	
279
	  
280
    /**
281
     * @return wfsStrategy
282
     */
283
    public Strategy getStrategy() {
284
        if (wfsStrategy == null){
285
        	wfsStrategy = new WFSStrategy(this);
286
        }
287
    	return wfsStrategy;
288
    }    
289
    
281

  
282

  
283
//    /**
284
//     * @return wfsStrategy
285
//     */
286
//    public Strategy getStrategy() {
287
//        if (wfsStrategy == null){
288
//        	wfsStrategy = new WFSStrategy(this);
289
//        }
290
//    	return wfsStrategy;
291
//    }
292

  
290 293
    /*
291 294
     *  (non-Javadoc)
292 295
     * @see com.iver.cit.gvsig.fmap.layers.FLayer#getFullExtent()

Also available in: Unified diff