Revision 11621 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/gml/writer/geometries/LineStringWriter.java

View differences:

LineStringWriter.java
1 1
package org.gvsig.gpe.gml.writer.geometries;
2 2

  
3 3
import java.io.IOException;
4

  
5
import org.gvsig.gpe.GPEErrorHandler;
4 6
import org.gvsig.gpe.xml.writer.Writer;
5 7

  
6 8
import org.gvsig.gpe.gml.GMLProjectionFactory;
......
50 52
 *
51 53
 * $Id$
52 54
 * $Log$
53
 * Revision 1.4  2007-05-08 10:24:16  jorpiell
55
 * Revision 1.5  2007-05-14 11:18:12  jorpiell
56
 * Add the ErrorHandler to all the methods
57
 *
58
 * Revision 1.4  2007/05/08 10:24:16  jorpiell
54 59
 * Add comments to create javadocs
55 60
 *
56 61
 * Revision 1.3  2007/04/14 16:07:30  jorpiell
......
84 89
	 * It writes a gml:lineString init tag
85 90
	 * @param writer
86 91
	 * Writer to write the labels
92
	 * @param errorHandler
93
	 * To add the errors
87 94
	 * @param id
88 95
	 * Geometry ID
89 96
	 * @param x
......
96 103
	 * Spatial reference system
97 104
	 * @throws IOException
98 105
	 */
99
	public static void start(Writer writer, String id, double[] x, double[] y,
106
	public static void start(Writer writer, GPEErrorHandler errorHandler, String id, double[] x, double[] y,
100 107
			double[] z, String srs) throws IOException{
101
		GeometriesWriter.startGeometry(writer, GMLTags.GML_LINESTRING, id, srs);
102
		CoordinatesWriter.write(writer, x, y, z);		
108
		GeometriesWriter.startGeometry(writer, errorHandler, GMLTags.GML_LINESTRING, id, srs);
109
		CoordinatesWriter.write(writer, errorHandler, x, y, z);		
103 110
	}
104 111
	
105 112
	/**
106 113
	 * It writes a gml:lineString init tag
107 114
	 * @param writer
108 115
	 * Writer to write the labels
116
	 * @param errorHandler
117
	 * To add the errors 
109 118
	 * @throws IOException
110 119
	 */
111
	public static void end(Writer writer) throws IOException{
112
		GeometriesWriter.endGeometry(writer, GMLTags.GML_LINESTRING);	
120
	public static void end(Writer writer, GPEErrorHandler errorHandler) throws IOException{
121
		GeometriesWriter.endGeometry(writer, errorHandler, GMLTags.GML_LINESTRING);	
113 122
	}
114 123
}

Also available in: Unified diff