Revision 21944 trunk/libraries/libGPE/src-test/org/gvsig/gpe/writer/GPEFeatureWithBboxTest.java
GPEFeatureWithBboxTest.java | ||
---|---|---|
1 | 1 |
package org.gvsig.gpe.writer; |
2 | 2 |
|
3 |
import org.gvsig.gpe.containers.CoordinatesIterator;
|
|
3 |
import org.gvsig.gpe.containers.CoordinatesSequence;
|
|
4 | 4 |
import org.gvsig.gpe.containers.Feature; |
5 | 5 |
import org.gvsig.gpe.containers.GeometryAsserts; |
6 | 6 |
import org.gvsig.gpe.containers.Layer; |
... | ... | |
115 | 115 |
*/ |
116 | 116 |
public void writeObjects() { |
117 | 117 |
getWriterHandler().initialize(); |
118 |
getWriterHandler().startLayer(layerId, layerName, layerDescription, srs, null);
|
|
118 |
getWriterHandler().startLayer(layerId, null, layerName, layerDescription, srs);
|
|
119 | 119 |
getWriterHandler().startFeature(feature1Id,feature1Name, null); |
120 |
getWriterHandler().startPoint(point1Id, new CoordinatesIterator(point1X, point1Y, point1Z), srs);
|
|
120 |
getWriterHandler().startPoint(point1Id, new CoordinatesSequence(point1X, point1Y, point1Z), srs);
|
|
121 | 121 |
getWriterHandler().endPoint(); |
122 |
getWriterHandler().startBbox(bboxG1Id, new CoordinatesIterator(bboxG1X, bboxG1Y,bboxG1Z), srs);
|
|
122 |
getWriterHandler().startBbox(bboxG1Id, new CoordinatesSequence(bboxG1X, bboxG1Y,bboxG1Z), srs);
|
|
123 | 123 |
getWriterHandler().endBbox(); |
124 | 124 |
getWriterHandler().endFeature(); |
125 | 125 |
getWriterHandler().startFeature(feature2Id,feature2Name, null); |
126 |
getWriterHandler().startPoint(point2Id, new CoordinatesIterator(point2X, point2Y, point2Z), srs);
|
|
126 |
getWriterHandler().startPoint(point2Id, new CoordinatesSequence(point2X, point2Y, point2Z), srs);
|
|
127 | 127 |
getWriterHandler().endPoint(); |
128 |
getWriterHandler().startBbox(bboxG2Id, new CoordinatesIterator(bboxG2X, bboxG2Y,bboxG2Z), srs);
|
|
128 |
getWriterHandler().startBbox(bboxG2Id, new CoordinatesSequence(bboxG2X, bboxG2Y,bboxG2Z), srs);
|
|
129 | 129 |
getWriterHandler().endBbox(); |
130 | 130 |
getWriterHandler().endFeature(); |
131 | 131 |
getWriterHandler().endLayer(); |
Also available in: Unified diff