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

View differences:

PointWriter.java
2 2

  
3 3
import java.io.IOException;
4 4
import java.io.OutputStream;
5

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

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

Also available in: Unified diff