Revision 6508
trunk/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/drivers/wfs/FMapWFSDriver.java | ||
---|---|---|
37 | 37 |
import com.iver.cit.gvsig.fmap.drivers.geotools.WFSFeaturesIterator; |
38 | 38 |
import com.iver.cit.gvsig.fmap.drivers.geotools.WFSFeatureLayer; |
39 | 39 |
import com.iver.cit.gvsig.fmap.drivers.geotools.WFSGetFeatureParser; |
40 |
import com.iver.cit.gvsig.fmap.drivers.geotools.WFSTypesConversion; |
|
40 | 41 |
import com.iver.cit.gvsig.fmap.layers.WFSLayerNode; |
41 | 42 |
|
42 | 43 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
... | ... | |
83 | 84 |
* |
84 | 85 |
* $Id$ |
85 | 86 |
* $Log$ |
86 |
* Revision 1.17 2006-07-21 10:02:43 caballero |
|
87 |
* Revision 1.18 2006-07-24 08:27:35 jorpiell |
|
88 |
* Implementado el m?todo getFieldType que permite la exportaci?n a los diferentes tipos de ficheros (como shp,....) |
|
89 |
* |
|
90 |
* Revision 1.17 2006/07/21 10:02:43 caballero |
|
87 | 91 |
* soluci?n provisional a WFS |
88 | 92 |
* |
89 | 93 |
* Revision 1.16 2006/07/12 11:55:22 jmvivo |
... | ... | |
193 | 197 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialDriver#getShapeType() |
194 | 198 |
*/ |
195 | 199 |
public int getShapeType() { |
196 |
return getShapeType(0);
|
|
200 |
return FShape.MULTI;
|
|
197 | 201 |
} |
198 | 202 |
|
199 | 203 |
/* |
... | ... | |
230 | 234 |
|
231 | 235 |
/* |
232 | 236 |
* (non-Javadoc) |
233 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialDriver#reLoad() |
|
234 |
*/ |
|
235 |
public void reLoad() throws IOException { |
|
236 |
featureIterator.reload(); |
|
237 |
} |
|
238 |
|
|
239 |
/* |
|
240 |
* (non-Javadoc) |
|
241 | 237 |
* @see com.hardcode.driverManager.Driver#getName() |
242 | 238 |
*/ |
243 | 239 |
public String getName() { |
... | ... | |
520 | 516 |
* @see com.hardcode.gdbms.engine.data.driver.ReadAccess#getFieldType(int) |
521 | 517 |
*/ |
522 | 518 |
public int getFieldType(int i) throws com.hardcode.gdbms.engine.data.driver.DriverException { |
523 |
//getAttributes()[i].getType(); |
|
524 |
return Types.VARCHAR; |
|
519 |
return WFSTypesConversion.javaToGvSIGTypes(getAttributes()[i].getType()); |
|
525 | 520 |
} |
526 | 521 |
|
527 | 522 |
/* |
... | ... | |
585 | 580 |
return FShape.MULTI; |
586 | 581 |
} |
587 | 582 |
|
583 |
/* |
|
584 |
* (non-Javadoc) |
|
585 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialDriver#reload() |
|
586 |
*/ |
|
588 | 587 |
public void reload() throws IOException, com.hardcode.gdbms.engine.data.driver.DriverException { |
589 |
// TODO Auto-generated method stub |
|
590 |
|
|
588 |
featureIterator.reload(); |
|
591 | 589 |
} |
592 | 590 |
|
593 | 591 |
|
Also available in: Unified diff