Revision 1225 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/store/serializer/GeoPointListRmfSerializer.java
GeoPointListRmfSerializer.java | ||
---|---|---|
28 | 28 |
import java.util.ArrayList; |
29 | 29 |
|
30 | 30 |
import org.gvsig.fmap.dal.coverage.datastruct.GeoPoint; |
31 |
import org.gvsig.fmap.dal.coverage.datastruct.GeoPointList; |
|
31 | 32 |
import org.gvsig.fmap.dal.coverage.exception.ParsingException; |
32 | 33 |
import org.gvsig.raster.impl.datastruct.DefaultViewPortData; |
33 | 34 |
import org.gvsig.raster.impl.datastruct.GeoPointImpl; |
... | ... | |
116 | 117 |
public static final String HEIGHT = "Height"; |
117 | 118 |
public static final String LYR = "Layer"; |
118 | 119 |
|
119 |
private ArrayList<GeoPoint> gpList = null;
|
|
120 |
private GeoPointList gpList = null;
|
|
120 | 121 |
private DefaultViewPortData viewPort = null; |
121 | 122 |
|
123 |
class GeoPointListImpl extends ArrayList<GeoPoint> implements GeoPointList { |
|
124 |
private static final long serialVersionUID = 1L; |
|
125 |
} |
|
126 |
|
|
122 | 127 |
/** |
123 | 128 |
* Registra GeoPointRmfSerializer en los puntos de extension de Serializer |
124 | 129 |
*/ |
... | ... | |
132 | 137 |
* Constructor. Asigna la lista de puntos a serializar. |
133 | 138 |
* @param ColorTable tabla a convertir en XML |
134 | 139 |
*/ |
135 |
public GeoPointListRmfSerializer(ArrayList<GeoPoint> gp) {
|
|
140 |
public GeoPointListRmfSerializer(GeoPointList gp) {
|
|
136 | 141 |
this.gpList = gp; |
137 | 142 |
} |
138 | 143 |
|
... | ... | |
140 | 145 |
* Constructor. Asigna la lista de puntos a serializar y el viewport. |
141 | 146 |
* @param ColorTable tabla a convertir en XML |
142 | 147 |
*/ |
143 |
public GeoPointListRmfSerializer(ArrayList<GeoPoint> gp, DefaultViewPortData vp) {
|
|
148 |
public GeoPointListRmfSerializer(GeoPointList gp, DefaultViewPortData vp) {
|
|
144 | 149 |
this.gpList = gp; |
145 | 150 |
this.viewPort = vp; |
146 | 151 |
} |
... | ... | |
234 | 239 |
throw new ParsingException(xml); |
235 | 240 |
} |
236 | 241 |
|
237 |
gpList = new ArrayList<GeoPoint>();
|
|
242 |
gpList = new GeoPointListImpl();
|
|
238 | 243 |
for (int i = 0; i < list.size(); i++) |
239 | 244 |
gpList.add((GeoPointImpl) list.get(i)); |
240 | 245 |
} |
Also available in: Unified diff