Revision 6507 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/gml/GMLFeaturesIterator.java
GMLFeaturesIterator.java | ||
---|---|---|
21 | 21 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
22 | 22 |
import com.iver.cit.gvsig.fmap.core.ShapeFactory; |
23 | 23 |
import com.iver.cit.gvsig.fmap.core.v02.FConverter; |
24 |
import com.iver.cit.gvsig.fmap.drivers.IFeatureIterator; |
|
24 | 25 |
|
25 | 26 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
26 | 27 |
* |
... | ... | |
66 | 67 |
* |
67 | 68 |
* $Id$ |
68 | 69 |
* $Log$ |
69 |
* Revision 1.1 2006-07-19 12:29:39 jorpiell |
|
70 |
* Revision 1.2 2006-07-24 07:36:40 jorpiell |
|
71 |
* Se han hecho un cambio en los nombres de los metodos para clarificar |
|
72 |
* |
|
73 |
* Revision 1.1 2006/07/19 12:29:39 jorpiell |
|
70 | 74 |
* A?adido el driver de GML |
71 | 75 |
* |
72 | 76 |
* |
... | ... | |
74 | 78 |
/** |
75 | 79 |
* @author Jorge Piera Llodr? (piera_jor@gva.es) |
76 | 80 |
*/ |
77 |
public class GMLFeaturesIterator { |
|
78 |
private FeatureReader featureReader = null;
|
|
81 |
public class GMLFeaturesIterator implements IFeatureIterator{
|
|
82 |
protected FeatureReader featureReader = null;
|
|
79 | 83 |
private Vector featureVector = new Vector(); |
80 | 84 |
private boolean parserException = false; |
81 | 85 |
private boolean finished = false; |
82 | 86 |
private int position = -1; |
83 | 87 |
private int length = -2; |
84 |
private ICoordTrans coordTrans;
|
|
88 |
protected ICoordTrans coordTrans;
|
|
85 | 89 |
|
86 | 90 |
public GMLFeaturesIterator(FeatureReader featureReader){ |
87 | 91 |
this.featureReader = featureReader; |
... | ... | |
210 | 214 |
} |
211 | 215 |
|
212 | 216 |
/** |
213 |
* Reprojects the new point |
|
214 |
* @param ptOrig |
|
215 |
* Origin point |
|
216 |
* @return |
|
217 |
* FPoint2D |
|
218 |
*/ |
|
219 |
private Point2D getReprojectedPoint(Point2D ptOrigin){ |
|
220 |
Point2D ptDest = null; |
|
221 |
return getCoordTrans().convert(ptOrigin, ptDest); |
|
222 |
} |
|
223 |
|
|
224 |
/** |
|
225 | 217 |
* @return the coordTrans |
226 | 218 |
*/ |
227 | 219 |
public ICoordTrans getCoordTrans() { |
... | ... | |
269 | 261 |
return arrayFields; |
270 | 262 |
} |
271 | 263 |
|
264 |
/** |
|
265 |
* @param coordTrans The coordTrans to set. |
|
266 |
*/ |
|
267 |
public void setCoordTrans(ICoordTrans coordTrans) { |
|
268 |
this.coordTrans = coordTrans; |
|
269 |
} |
|
270 |
|
|
272 | 271 |
} |
Also available in: Unified diff